Commit 8e41a4fd authored by Jérome Perrin's avatar Jérome Perrin

disable some trucs

parent 7e2c3d49
...@@ -364,15 +364,12 @@ def synchronizeDynamicModules(context, force=False, reset_test=True): ...@@ -364,15 +364,12 @@ def synchronizeDynamicModules(context, force=False, reset_test=True):
LOG("ERP5Type.dynamic", 0, "Resetting dynamic classes (reset_test:%s)" % LOG("ERP5Type.dynamic", 0, "Resetting dynamic classes (reset_test:%s)" %
reset_test) reset_test)
if reset_test: #if reset_test:
import ipdb; ipdb.set_trace() # import ipdb; ipdb.set_trace()
try: 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):
if reset_test: klass.restoreGhostState()
klass.restoreGhostState()
elif not 'Test' in class_name:
klass.restoreGhostState()
# Clear accessor holders of ZODB Property Sheets and Portal Types # Clear accessor holders of ZODB Property Sheets and Portal Types
erp5.accessor_holder.clear() erp5.accessor_holder.clear()
......
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