[Erp5-report] r35707 fabien - /erp5/trunk/products/ERP5/interfaces/encrypted_password.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 28 11:19:21 CEST 2010


Author: fabien
Date: Fri May 28 11:19:16 2010
New Revision: 35707

URL: http://svn.erp5.org?rev=35707&view=rev
Log:
indentation and typo

Modified:
    erp5/trunk/products/ERP5/interfaces/encrypted_password.py

Modified: erp5/trunk/products/ERP5/interfaces/encrypted_password.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/encrypted_password.py?rev=35707&r1=35706&r2=35707&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/encrypted_password.py [utf8] (original)
+++ erp5/trunk/products/ERP5/interfaces/encrypted_password.py [utf8] Fri May 28 11:19:16 2010
@@ -44,13 +44,13 @@
 
   def setEncodedPassword(value, format='default'):
     """
-      Set an already encoded password.
+    Set an already encoded password.
     """
 
   def _forceSetPassword(value):
     """
     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
     Password Tool. This method is not callable through edit method as it not
     begins with _set*
@@ -63,22 +63,22 @@
 
   def setPassword(value) :
     """
-      Set the password, only if the password is not empty and user has
-      SetOwnPassword permission
+    Set the password, only if the password is not empty and user has
+    SetOwnPassword permission
     """
 
   def getPassword(*args, **kw):
     """
-      Retrieve password in desired format.
+    Retrieve password in desired format.
 
-      getPassword([default], [format='default'])
+    getPassword([default], [format='default'])
 
-      default (anything)
-        Value to return if no password is set on context.
-        Default: None
-      format (string)
-        String defining the format in which the password is expected.
-        If passowrd is not available in that format, KeyError will be
-        raised.
-        Default: 'default'
+    default (anything)
+      Value to return if no password is set on context.
+      Default: None
+    format (string)
+      String defining the format in which the password is expected.
+      If passowrd is not available in that format, KeyError will be
+      raised.
+      Default: 'default'
     """




More information about the Erp5-report mailing list