[Erp5-report] r42852 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 31 23:08:07 CET 2011
Author: nicolas.dumazet
Date: Mon Jan 31 23:08:06 2011
New Revision: 42852
URL: http://svn.erp5.org?rev=42852&view=rev
Log:
of course the Base methods could be well written and respect their contracts as well ;)
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=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Mon Jan 31 23:08:06 2011
@@ -1148,6 +1148,8 @@ class Base( CopyContainer,
tv = getTransactionalVariable()
if isinstance(portal_type, list):
portal_type = tuple(portal_type)
+ elif portal_type is None:
+ portal_type = ()
acquisition_key = ('_getDefaultAcquiredProperty', self.getPath(), key,
acquisition_object_id, base_category, portal_type,
copy_value, mask_value, sync_value, accessor_id, depends,
@@ -1333,6 +1335,8 @@ class Base( CopyContainer,
tv = getTransactionalVariable()
if isinstance(portal_type, list):
portal_type = tuple(portal_type)
+ elif portal_type is None:
+ portal_type = ()
acquisition_key = ('_getAcquiredPropertyList', self.getPath(), key, base_category,
portal_type, copy_value, mask_value, sync_value,
accessor_id, depends, storage_id, alt_accessor_id,
More information about the Erp5-report
mailing list