Rename clean_existing_user_not_equal_to_current function to clean_users_not_same in soc.logic.cleaning module and fix affected files.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Thu, 22 Jan 2009 22:01:16 +0000
changeset 905 70eb2493a346
parent 904 a6397daf4006
child 906 275d2f457c50
Rename clean_existing_user_not_equal_to_current function to clean_users_not_same in soc.logic.cleaning module and fix affected files. Patch by: Pawel Solyga Review by: to-be-reviewed
app/soc/logic/cleaning.py
app/soc/views/models/club_app.py
--- a/app/soc/logic/cleaning.py	Thu Jan 22 17:26:14 2009 +0000
+++ b/app/soc/logic/cleaning.py	Thu Jan 22 22:01:16 2009 +0000
@@ -56,7 +56,7 @@
     return user_entity
   return wrapped
 
-def clean_existing_user_not_equal_to_current(field_name):
+def clean_users_not_same(field_name):
   """Check if the field_name field is a valid user and is not 
      equal to the current user.
   """
--- a/app/soc/views/models/club_app.py	Thu Jan 22 17:26:14 2009 +0000
+++ b/app/soc/views/models/club_app.py	Thu Jan 22 22:01:16 2009 +0000
@@ -78,7 +78,7 @@
               label=soc.models.club_app.ClubApplication.backup_admin.verbose_name
               ),
         'clean_backup_admin_link_id': 
-            cleaning.clean_existing_user_not_equal_to_current('backup_admin_link_id'),
+            cleaning.clean_users_not_same('backup_admin_link_id'),
         }
 
     patterns = [(r'^%(url_name)s/(?P<access_type>review)$',