[Erp5-report] r39520 arnaud.fontaine - /erp5/trunk/products/ERP5Type/dynamic/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 26 09:05:51 CEST 2010
Author: arnaud.fontaine
Date: Tue Oct 26 09:05:50 2010
New Revision: 39520
URL: http://svn.erp5.org?rev=39520&view=rev
Log:
Perform an _aq_reset when resetting all classes, necessary to fix
workflow because accessors are wrapped in WorkflowMethod by
_aq_dynamic
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=39520&r1=39519&r2=39520&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] Tue Oct 26 09:05:50 2010
@@ -35,6 +35,7 @@ from types import ModuleType
from dynamic_module import registerDynamicModule
from lazy_class import generateLazyPortalTypeClass
+from Products.ERP5Type.Base import _aq_reset
from Products.ERP5Type.Globals import InitializeClass
from Products.ERP5Type.Utils import setDefaultClassProperties
from Products.ERP5Type import document_class_registry, mixin_class_registry
@@ -316,3 +317,7 @@ def synchronizeDynamicModules(context, f
# Clear accessor holders of filesystem Property Sheets
_clearAccessorHolderModule(erp5.filesystem_accessor_holder)
+
+ # Necessary because accessors are wrapped in WorkflowMethod by
+ # _aq_dynamic (performed in createAccessorHolder)
+ _aq_reset()
More information about the Erp5-report
mailing list