Commit 57d6df2f authored by Nicolas Dumazet's avatar Nicolas Dumazet

portal types API expects all Documents __init__ to have at least a (self, id) signature


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa64d18f
......@@ -69,7 +69,7 @@ class InterpolationTool (UniqueObject):
) + ZCatalog.manage_options
def __init__(self):
def __init__(self, id=None):
ZCatalog.__init__(self, self.getId())
# Explicite Inheritance
......
......@@ -62,8 +62,12 @@ class PasswordTool(BaseTool):
_expiration_day = 1
_password_request_dict = {}
def __init__(self):
def __init__(self, id=None):
if id is None:
id = self.__class__.id
self._password_request_dict = PersistentMapping()
# XXX no call to BaseTool.__init__ ?
# BaseTool.__init__(self, id)
security.declareProtected('Manage users', 'getResetPasswordUrl')
......
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