Commit 676a41a3 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix SyntaxError on python 2.4

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43937 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 102c4d4d
...@@ -382,6 +382,7 @@ def synchronizeDynamicModules(context, force=False): ...@@ -382,6 +382,7 @@ def synchronizeDynamicModules(context, force=False):
_bootstrapped.add(portal.id) _bootstrapped.add(portal.id)
LOG("ERP5Type.dynamic", 0, "Resetting dynamic classes") LOG("ERP5Type.dynamic", 0, "Resetting dynamic classes")
try:
for class_name, klass in inspect.getmembers(erp5.portal_type, for class_name, klass in inspect.getmembers(erp5.portal_type,
inspect.isclass): inspect.isclass):
klass.restoreGhostState() klass.restoreGhostState()
...@@ -395,8 +396,8 @@ def synchronizeDynamicModules(context, force=False): ...@@ -395,8 +396,8 @@ def synchronizeDynamicModules(context, force=False):
delattr(erp5.accessor_holder.portal_type, name) delattr(erp5.accessor_holder.portal_type, name)
except Exception: except Exception:
# Allow easier debugging when the code is wrong as this exception # Allow easier debugging when the code is wrong as this
# is catched later and re-raised as a BadRequest # exception is catched later and re-raised as a BadRequest
import traceback; traceback.print_exc() import traceback; traceback.print_exc()
raise raise
......
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