Fixed comment and typo in cleaning.py.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 12 Feb 2009 21:25:00 +0000
changeset 1285 d54f2d80f46e
parent 1284 92f7a24d8f42
child 1286 940f06d34787
Fixed comment and typo in cleaning.py. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/logic/cleaning.py
--- a/app/soc/logic/cleaning.py	Thu Feb 12 20:15:20 2009 +0000
+++ b/app/soc/logic/cleaning.py	Thu Feb 12 21:25:00 2009 +0000
@@ -226,9 +226,7 @@
       fields = {'link_id': link_id}
       user_entity = user_logic.logic.getForFields(fields, unique=True)
 
-      former_accounts = user_entity.former_accounts
-
-      # if it's not the user's current account or one of his former accounts
+      # if it's not the user's current account
       if user_entity.account != user_account:
 
         # get the user having the given account
@@ -239,7 +237,7 @@
         # if there is a user with the given account or it's a former account
         if user_from_account_entity or user_logic.logic.isFormerAccount(user_account):
           # raise an error because this email address can't be used
-          raise forms.ValidationError("There is already a user with this email adress.")
+          raise forms.ValidationError("There is already a user with this email address.")
 
     return cleaned_data
   return wrapper