[Erp5-report] r9223 - /erp5/trunk/products/ERP5Type/ERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 16 10:19:21 CEST 2006
Author: chris
Date: Wed Aug 16 10:19:19 2006
New Revision: 9223
URL: http://svn.erp5.org?rev=9223&view=rev
Log:
- Fixed problems when the factory method is not based on portal type id.
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=9223&r1=9222&r2=9223&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py Wed Aug 16 10:19:19 2006
@@ -255,8 +255,7 @@
ptype_object = self
# get the klass of the object based on the constructor document
m = Products.ERP5Type._m
- ptype_name = ''.join(ptype_object.id.split(' '))
- constructor = 'add%s' %(ptype_name)
+ constructor = self.factory
klass = None
for method, doc in m.items():
if method == constructor:
@@ -290,8 +289,7 @@
ptype_object = self
# get the klass of the object based on the constructor document
m = Products.ERP5Type._m
- ptype_name = ''.join(ptype_object.id.split(' '))
- constructor = 'add%s' %(ptype_name)
+ constructor = self.factory
klass = None
for method, doc in m.items():
if method == constructor:
More information about the Erp5-report
mailing list