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

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jan 31 13:04:37 CET 2011


Author: nicolas.dumazet
Date: Mon Jan 31 13:04:36 2011
New Revision: 42803

URL: http://svn.erp5.org?rev=42803&view=rev
Log:
initialize PropertyHolder attributes to avoid copy pasting code

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=42803&r1=42802&r2=42803&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Mon Jan 31 13:04:36 2011
@@ -324,6 +324,11 @@ class PropertyHolder(object):
     self.security = ClassSecurityInfo() # We create a new security info object
     self.workflow_method_registry = {}
 
+    self._categories = []
+    self._properties = []
+    self._constraints = []
+    self.constraints = []
+
   def _getItemList(self):
     return [x for x in self.__dict__.items() if x[0] not in
         PropertyHolder.RESERVED_PROPERTY_SET]



More information about the Erp5-report mailing list