From ea9c7c0dd3ecda32c5eee14a42fc76cb908171ba Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Mon, 31 Jan 2011 22:08:06 +0000
Subject: [PATCH] of course the Base methods could be well written and respect
 their contracts as well ;)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42852 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Base.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index 8dd796bc84..e8ade66b5e 100644
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -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,
-- 
2.30.9