[Erp5-report] r9677 - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 6 00:43:15 CEST 2006
Author: jerome
Date: Wed Sep 6 00:43:12 2006
New Revision: 9677
URL: http://svn.erp5.org?rev=9677&view=rev
Log:
similar to 9610, but more elegant, we get __class__ _properties at initialization.
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=9677&r1=9676&r2=9677&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Wed Sep 6 00:43:12 2006
@@ -171,7 +171,7 @@
# Initiatise portal_type properties (XXX)
ptype_object = getattr(aq_base(self.portal_types), ptype, None)
cat_list = []
- prop_list = []
+ prop_list = list(getattr(klass, '_properties', []))
constraint_list = []
if (ptype_object is not None) and \
(ptype_object.meta_type == 'ERP5 Type Information'):
@@ -399,8 +399,7 @@
self._aq_dynamic('id') # Make sure aq_dynamic has been called once
if Base.aq_portal_type.has_key(ptype):
return tuple(list(getattr(Base.aq_portal_type[ptype], '_properties', ())) +
- list(getattr(self, '_local_properties', ())) +
- list(ERP5PropertyManager._propertyMap(self)))
+ list(getattr(self, '_local_properties', ())))
return ERP5PropertyManager._propertyMap(self)
def _aq_dynamic_pmethod(self, id):
More information about the Erp5-report
mailing list