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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 4 04:06:06 CET 2010


Author: nicolas.dumazet
Date: Thu Nov  4 04:06:02 2010
New Revision: 39869

URL: http://svn.erp5.org?rev=39869&view=rev
Log:
it's really not necessary to save a function call on a test-method

It just makes development more error-prone...

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

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=39869&r1=39868&r2=39869&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Thu Nov  4 04:06:02 2010
@@ -855,7 +855,7 @@ class Base( CopyContainer,
     """
     ptype = self.portal_type
     klass = self.__class__
-    aq_key = (ptype, klass) # We do not use _aq_key() here for speed
+    aq_key = self._aq_key()
     initializePortalTypeDynamicProperties(self, klass, ptype, aq_key, \
         self.getPortalObject())
     from Products.ERP5Form.PreferenceTool import createPreferenceToolAccessorList




More information about the Erp5-report mailing list