From dd82cae95e78fbcec892d2675ef98669bf096d72 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Mon, 31 Jan 2011 12:04:36 +0000 Subject: [PATCH] initialize PropertyHolder attributes to avoid copy pasting code git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42803 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 87a033de3c..a338833b0d 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -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] -- 2.30.9