[Erp5-report] r43934 arnaud.fontaine - /erp5/trunk/products/ERP5Type/dynamic/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 3 13:01:13 CET 2011


Author: arnaud.fontaine
Date: Thu Mar  3 13:01:13 2011
New Revision: 43934

URL: http://svn.erp5.org?rev=43934&view=rev
Log:
Make debugging easier when resetting dynamic classes

Modified:
    erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py

Modified: erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py?rev=43934&r1=43933&r2=43934&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] Thu Mar  3 13:01:13 2011
@@ -238,7 +238,7 @@ def generatePortalTypeClass(site, portal
 
   #LOG("ERP5Type.dynamic", INFO,
   #    "Portal type %s loaded with bases %s" \
-  #        % (portal_type_name, repr(baseclasses)))
+  #        % (portal_type_name, repr(base_class_list)))
 
   return (tuple(base_class_list),
           portal_type_category_list,
@@ -394,6 +394,12 @@ def synchronizeDynamicModules(context, f
       if name[0] != '_':
         delattr(erp5.accessor_holder.portal_type, name)
 
+  except Exception:
+    # Allow easier debugging when the code is wrong as this exception
+    # is catched later and re-raised as a BadRequest
+    import traceback; traceback.print_exc()
+    raise
+
   finally:
     Base.aq_method_lock.release()
 



More information about the Erp5-report mailing list