Commit ab3ce726 authored by Jérome Perrin's avatar Jérome Perrin

return reference if stored directly.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8944 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbcd6158
......@@ -71,17 +71,17 @@ class BankAccount(Folder, Coordinate, MetaNode):
security.declareProtected(Permissions.AccessContentsInformation, 'getReference')
def getReference(self, **kw):
def getReference(self, *args, **kw):
"""reference depends on the site configuration.
"""
value = self._baseGetReference(**kw)
value = self._baseGetReference(*args, **kw)
if value is None:
# Try to get a skin named PortalType_getReference.
portal_type = self.getPortalType()
method = getattr(self, '%s_getReference' % portal_type.replace(' ', ''), None)
if method is not None:
return method(**kw)
return method(*args, **kw)
return value
# XXX The following "helper methods" have been commented out, and kept in the
# code as an example.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment