From 1a0c3d3dfd3e268f148a1aac43193882eb3d15b1 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Mon, 17 Jun 2013 17:05:29 +0200 Subject: [PATCH] Do not duplicate superclass' code. --- product/ERP5/Tool/PasswordTool.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/product/ERP5/Tool/PasswordTool.py b/product/ERP5/Tool/PasswordTool.py index 205e1b55b8..a94e1fd934 100644 --- a/product/ERP5/Tool/PasswordTool.py +++ b/product/ERP5/Tool/PasswordTool.py @@ -61,11 +61,8 @@ class PasswordTool(BaseTool): _expiration_day = 1 def __init__(self, id=None): - if id is None: - id = self.__class__.id + super(PasswordTool, self).__init__(id) self._password_request_dict = OOBTree() - # XXX no call to BaseTool.__init__ ? - # BaseTool.__init__(self, id) security.declareProtected('Manage users', 'getResetPasswordKey') def getResetPasswordKey(self, user_login, expiration_date=None): -- 2.30.9