# HG changeset patch # User Lennard de Rijk # Date 1234473900 0 # Node ID d54f2d80f46ef179d906e4acaee08d9246674e6d # Parent 92f7a24d8f426cc1f272cc49612e16b0dfc9abf7 Fixed comment and typo in cleaning.py. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 92f7a24d8f42 -r d54f2d80f46e 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