Commit c297c12e authored by Fabien Morin's avatar Fabien Morin

indentation and typo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35707 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78cd2eeb
...@@ -44,13 +44,13 @@ class IEncryptedPassword(Interface): ...@@ -44,13 +44,13 @@ class IEncryptedPassword(Interface):
def setEncodedPassword(value, format='default'): def setEncodedPassword(value, format='default'):
""" """
Set an already encoded password. Set an already encoded password.
""" """
def _forceSetPassword(value): def _forceSetPassword(value):
""" """
Because both _setPassword and setPassword are considered as Because both _setPassword and setPassword are considered as
public method(They are callable from user directly or through edit method) public method (they are callable from user directly or through edit method)
_forceSetPassword is needed to reset password without security check by _forceSetPassword is needed to reset password without security check by
Password Tool. This method is not callable through edit method as it not Password Tool. This method is not callable through edit method as it not
begins with _set* begins with _set*
...@@ -63,22 +63,22 @@ class IEncryptedPassword(Interface): ...@@ -63,22 +63,22 @@ class IEncryptedPassword(Interface):
def setPassword(value) : def setPassword(value) :
""" """
Set the password, only if the password is not empty and user has Set the password, only if the password is not empty and user has
SetOwnPassword permission SetOwnPassword permission
""" """
def getPassword(*args, **kw): def getPassword(*args, **kw):
""" """
Retrieve password in desired format. Retrieve password in desired format.
getPassword([default], [format='default']) getPassword([default], [format='default'])
default (anything) default (anything)
Value to return if no password is set on context. Value to return if no password is set on context.
Default: None Default: None
format (string) format (string)
String defining the format in which the password is expected. String defining the format in which the password is expected.
If passowrd is not available in that format, KeyError will be If passowrd is not available in that format, KeyError will be
raised. raised.
Default: 'default' Default: 'default'
""" """
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