Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Joshua
erp5
Commits
1a0c3d3d
Commit
1a0c3d3d
authored
11 years ago
by
Vincent Pelletier
Browse files
Options
Download
Email Patches
Plain Diff
Do not duplicate superclass' code.
parent
5b1fb6a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
product/ERP5/Tool/PasswordTool.py
product/ERP5/Tool/PasswordTool.py
+1
-4
No files found.
product/ERP5/Tool/PasswordTool.py
View file @
1a0c3d3d
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment