[Erp5-report] r42863 nicolas.dumazet - /erp5/trunk/products/ERP5Type/ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 1 04:28:47 CET 2011


Author: nicolas.dumazet
Date: Tue Feb  1 04:28:47 2011
New Revision: 42863

URL: http://svn.erp5.org?rev=42863&view=rev
Log:
hereby removing an useful _edit method that is now implemented in an interaction workflow

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

Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=42863&r1=42862&r2=42863&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Tue Feb  1 04:28:47 2011
@@ -501,26 +501,6 @@ class ERP5TypeInformation(XMLObject,
       """
       return self.constructTempInstance(self, self.getId()).propertyMap()
 
-    def _edit(self, *args, **kw):
-      """
-        Method overload
-
-        Reset _aq_dynamic if property_sheet definition has changed)
-
-        XXX This is only good in single thread mode.
-            In ZEO environment, we should call portal_activities
-            in order to implement a broadcast update
-            on production hosts
-      """
-      property_list = 'factory', 'property_sheet_list', 'base_category_list'
-      previous_state = [getattr(aq_base(self), x) for x in property_list]
-      result = XMLObject._edit(self, *args, **kw)
-      if previous_state != [getattr(aq_base(self), x) for x in property_list]:
-        # XXX very dubious, isnt it done in interaction workflows?
-        # most likely, only base_category_list is missing
-        self.portal_types.resetDynamicDocuments()
-      return result
-
     security.declareProtected(Permissions.AccessContentsInformation,
                               'PrincipiaSearchSource')
     def PrincipiaSearchSource(self):



More information about the Erp5-report mailing list