Commit d4135cf5 authored by Georgios Dagkakis's avatar Georgios Dagkakis

PasswordTool: rename getExpirationDateForKey to _getExpirationDateForKey

/reviewed-on !103
parent c4f98af2
...@@ -106,8 +106,7 @@ class PasswordTool(BaseTool): ...@@ -106,8 +106,7 @@ class PasswordTool(BaseTool):
url = "%s?%s" %(base_url, parameter) url = "%s?%s" %(base_url, parameter)
return url return url
security.declareProtected('Manage users', 'getResetPasswordUrl') def _getExpirationDateForKey(self, key=None):
def getExpirationDateForKey(self, key=None):
return self._password_request_dict[key][1] return self._password_request_dict[key][1]
security.declarePublic('mailPasswordResetRequest') security.declarePublic('mailPasswordResetRequest')
...@@ -168,7 +167,7 @@ class PasswordTool(BaseTool): ...@@ -168,7 +167,7 @@ class PasswordTool(BaseTool):
# send mail # send mail
message_dict = {'instance_name':self.getPortalObject().getTitle(), message_dict = {'instance_name':self.getPortalObject().getTitle(),
'reset_password_link':url, 'reset_password_link':url,
'expiration_date':self.getExpirationDateForKey(key)} 'expiration_date':self._getExpirationDateForKey(key)}
if substitution_method_parameter_dict is not None: if substitution_method_parameter_dict is not None:
message_dict.update(substitution_method_parameter_dict) message_dict.update(substitution_method_parameter_dict)
......
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