Fix some whitespace damadge and a style fix
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 26 Feb 2009 16:48:02 +0000
changeset 1511 3342ce7a495c
parent 1510 bc6dc3bb8d2a
child 1512 97c4a718d6f4
Fix some whitespace damadge and a style fix Patch by: Sverre Rabbelier
app/soc/logic/helper/notifications.py
app/soc/logic/models/club.py
app/soc/logic/models/organization.py
app/soc/views/models/program.py
--- a/app/soc/logic/helper/notifications.py	Thu Feb 26 16:47:04 2009 +0000
+++ b/app/soc/logic/helper/notifications.py	Thu Feb 26 16:48:02 2009 +0000
@@ -99,7 +99,7 @@
   to_user = entity.applicant
 
   url = "http://%(host)s%(redirect)s" % {
-      'redirect': redirects.getApplicantRedirect(entity, 
+      'redirect': redirects.getApplicantRedirect(entity,
       {'url_name': params['group_url_name']}),
       'host': os.environ['HTTP_HOST'],
       }
--- a/app/soc/logic/models/club.py	Thu Feb 26 16:47:04 2009 +0000
+++ b/app/soc/logic/models/club.py	Thu Feb 26 16:48:02 2009 +0000
@@ -72,7 +72,7 @@
         key_fields = request_logic.logic.getKeyFieldsFromFields(properties)
         request_logic.logic.updateOrCreateFromFields(properties, key_fields)
 
-      # set the application to completed  
+      # set the application to completed
       fields = {'status' : 'completed'}
       club_app_logic.logic.updateEntityProperties(application, fields)
 
--- a/app/soc/logic/models/organization.py	Thu Feb 26 16:47:04 2009 +0000
+++ b/app/soc/logic/models/organization.py	Thu Feb 26 16:48:02 2009 +0000
@@ -81,7 +81,7 @@
         key_fields = request_logic.logic.getKeyFieldsFromFields(properties)
         request_logic.logic.updateOrCreateFromFields(properties, key_fields)
 
-      # set the application to completed  
+      # set the application to completed
       fields = {'status': 'completed'}
       org_app_logic.logic.updateEntityProperties(application, fields)
 
--- a/app/soc/views/models/program.py	Thu Feb 26 16:47:04 2009 +0000
+++ b/app/soc/views/models/program.py	Thu Feb 26 16:48:02 2009 +0000
@@ -79,7 +79,7 @@
     new_params['sidebar_grouping'] = 'Programs'
     new_params['document_prefix'] = "program"
 
-    new_params['extra_dynaexclude'] = ['timeline', 'org_admin_agreement', 
+    new_params['extra_dynaexclude'] = ['timeline', 'org_admin_agreement',
         'mentor_agreement', 'student_agreement']
 
     # TODO add clean field to check for uniqueness in link_id and scope_path
@@ -176,7 +176,7 @@
     rights = params['rights']
 
     # only get all invisible and visible programs
-    fields = {'status':['invisible', 'visible']}
+    fields = {'status': ['invisible', 'visible']}
     entities = logic.getForFields(fields)
 
     menus = []
@@ -194,7 +194,7 @@
 
       try:
         # check if the current user is a host for this program
-        rights.doCachedCheck('checkIsHostForProgram', 
+        rights.doCachedCheck('checkIsHostForProgram',
                              {'scope_path': entity.scope_path,
                               'link_id': entity.link_id}, [])
 
@@ -249,7 +249,7 @@
       if user:
         # add the 'List my Organization Applications' link
         items += [
-            (redirects.getListSelfRedirect(program_entity, 
+            (redirects.getListSelfRedirect(program_entity,
                                            {'url_name' : 'org_app'}),
              "List My Organization Applications", 'any_access')]
 
@@ -281,7 +281,7 @@
     if timeline_helper.isAfterEvent(timeline_entity,
         'accepted_organization_announced_deadline'):
       # add a link to list all the organizations
-      items += [(redirects.getPublicListRedirect(program_entity, {'url_name': 'org'}), 
+      items += [(redirects.getPublicListRedirect(program_entity, {'url_name': 'org'}),
           "List participating Organizations", 'any_access')]
 
       if not student_entity:
@@ -310,7 +310,7 @@
 
   def _getOrganizationEntries(self, program_entity, org_admin_entity,
                               mentor_entity, params, id, user):
-    """Returns a list with menu items for org admins and mentors in a 
+    """Returns a list with menu items for org admins and mentors in a
        specific program.
     """