Commit af042145 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Make debugging easier when resetting dynamic classes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43934 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96e1dc6d
......@@ -238,7 +238,7 @@ def generatePortalTypeClass(site, portal_type_name):
#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, force=False):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment