[Erp5-report] r44632 nicolas - /erp5/trunk/products/ERP5Type/ERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 25 17:03:23 CET 2011
Author: nicolas
Date: Fri Mar 25 17:03:23 2011
New Revision: 44632
URL: http://svn.erp5.org?rev=44632&view=rev
Log:
This condition is dangerous, because method can be acquired from container,
and useless because the method is not called.
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=44632&r1=44631&r2=44632&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Fri Mar 25 17:03:23 2011
@@ -404,11 +404,7 @@ class ERP5TypeInformation(XMLObject,
# Portal type has to be set before setting other attributes
# in order to initialize aq_dynamic
- if hasattr(ob, '_setPortalTypeName'):
- #ob._setPortalTypeName(self.getId())
- # XXX rafael: if we use _set because it is trigger by interaction
- # workflow and it is annoyning without security setted
- ob.portal_type = self.getId()
+ ob.portal_type = self.getId()
if compute_local_role:
# Do not reindex object because it's already done by manage_afterAdd
More information about the Erp5-report
mailing list