From: Morten W. P. <mo...@us...> - 2002-03-06 19:05:18
|
Update of /cvsroot/warp-framework/warp_framework In directory usw-pr-cvs1:/tmp/cvs-serv24503 Modified Files: html_property_manager.py Log Message: Making it a bit more robust Index: html_property_manager.py =================================================================== RCS file: /cvsroot/warp-framework/warp_framework/html_property_manager.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** html_property_manager.py 5 Mar 2002 17:19:42 -0000 1.23 --- html_property_manager.py 6 Mar 2002 19:05:13 -0000 1.24 *************** *** 161,166 **** sheet = self.create_sheet(property_sheet_name.capitalize()) for property in self.get_property_sheet(property_sheet_name): ! sheet.add_entry(property.title, ! property.render_or_get_widget()) html += sheet.render() return html --- 161,175 ---- sheet = self.create_sheet(property_sheet_name.capitalize()) for property in self.get_property_sheet(property_sheet_name): ! try: ! sheet.add_entry(property.title, ! property.render_or_get_widget()) ! except: ! import sys, traceback ! type, val, tb = sys.exc_info() ! zLOG.LOG('warp_framework', 200, type, ! traceback.format_exception(type, val, tb), '') ! sheet.add_entry(property.title, ! 'An error occured, it has been logged') ! del type, val, tb html += sheet.render() return html |