From 8738dcfa5c7a19718d033e4146aa75b84772e582 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Fri, 11 Mar 2011 17:01:50 +0000 Subject: [PATCH] * delegate default value handling to _baseGetReference * this indirectly fix a site error on portal_property_sheets/view when a property had no reference git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44209 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/id_as_reference.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/id_as_reference.py b/product/ERP5Type/id_as_reference.py index 8011fb2ab2..d4035d27b1 100644 --- a/product/ERP5Type/id_as_reference.py +++ b/product/ERP5Type/id_as_reference.py @@ -67,10 +67,10 @@ def IdAsReferenceMixin(suffix): security.declareProtected(Permissions.AccessContentsInformation, 'getReference') - def getReference(self, default=None): + def getReference(self, *args): id = self.id if id[suffix_index:] == suffix: return id[:suffix_index] - return self._baseGetReference(default=default) + return self._baseGetReference(*args) return IdAsReferenceMixin -- 2.30.9