[Erp5-report] r27208 - /erp5/trunk/products/ERP5/Tool/PasswordTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 27 09:44:37 CEST 2009


Author: jerome
Date: Wed May 27 09:44:35 2009
New Revision: 27208

URL: http://svn.erp5.org?rev=27208&view=rev
Log:
fix some typos

Modified:
    erp5/trunk/products/ERP5/Tool/PasswordTool.py

Modified: erp5/trunk/products/ERP5/Tool/PasswordTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/PasswordTool.py?rev=27208&r1=27207&r2=27208&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/PasswordTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/PasswordTool.py [utf8] Wed May 27 09:44:35 2009
@@ -42,7 +42,7 @@
 
 class PasswordTool(BaseTool):
   """
-    PasswoordTool is used to allow a user to change its password
+    PasswordTool is used to allow a user to change its password
   """
   title = 'Password Tool'
   id = 'portal_password'
@@ -65,7 +65,7 @@
 
   def mailPasswordResetRequest(self, user_login=None, REQUEST=None):
     """
-    Create a ramdom string and expiration date for request
+    Create a random string and expiration date for request
     """
     if user_login is None:
       user_login = REQUEST["user_login"]
@@ -83,7 +83,7 @@
         return msg
 
     user = user_list[0].getObject()
-    # generate a ramdom string
+    # generate a random string
     random_url = self._generateUUID()
     url = "%s/portal_password/resetPassword?reset_key=%s" %(self.getPortalObject().absolute_url() , random_url)
     # generate expiration date
@@ -185,7 +185,7 @@
     elif current_date > expiration_date:
       msg = translateString("Date has expire.")
     elif not password:
-      msg = translateSTring("Password must be entered.")
+      msg = translateString("Password must be entered.")
     elif password != password_confirmation:
       msg = translateString("Passwords do not match.")
     if msg is not None:




More information about the Erp5-report mailing list