Style fixes in Group View.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 23 Jul 2009 14:37:44 +0200
changeset 2665 1f4acb80fd95
parent 2664 06d4f4d06f64
child 2666 5de9eba17661
Style fixes in Group View.
app/soc/views/models/group.py
--- a/app/soc/views/models/group.py	Thu Jul 23 14:36:45 2009 +0200
+++ b/app/soc/views/models/group.py	Thu Jul 23 14:37:44 2009 +0200
@@ -42,6 +42,7 @@
 
 import soc.views.helper
 
+
 class View(presence.View):
   """View methods for the Group model.
   """
@@ -105,7 +106,6 @@
           'shipping_postalcode'),
        }
 
-
     new_params['role_views'] = {}
 
     params = dicts.merge(params, new_params, sub_merge=True)
@@ -131,7 +131,6 @@
 
     super(View, self)._editPost(request, entity, fields)
 
-
   @decorators.merge_params
   @decorators.check_access
   def applicant(self, request, access_type,
@@ -242,7 +241,6 @@
         fields['scope_path'])
     fields['scope'] = scope
 
-
   @decorators.merge_params
   @decorators.check_access
   def listRequests(self, request, access_type,
@@ -266,7 +264,7 @@
     group_entity = group_logic.getFromKeyFields(kwargs)
 
     role_names = params['role_views'].keys()
-    
+
     # list all incoming requests
     filter = {
         'scope': group_entity,
@@ -281,7 +279,7 @@
     inc_req_params['list_action'] = (redirects.getProcessRequestRedirect, None)
     inc_req_params['list_description'] = ugettext(
         "An overview of the %(name)s's incoming requests." % params)
-    
+
     inc_req_content = list_helper.getListContent(
         request, inc_req_params, filter, idx=0)
 
@@ -317,7 +315,7 @@
     ignored_params['list_action'] = (redirects.getProcessRequestRedirect, None)
     ignored_params['list_description'] = ugettext(
         "An overview of the %(name)s's ignored requests." % params)
-    
+
     ignored_content = list_helper.getListContent(
         request, ignored_params, filter, idx=2)
 
@@ -325,7 +323,6 @@
 
     return self._list(request, params, contents, page_name)
 
-
   @decorators.merge_params
   @decorators.check_access
   def listRoles(self, request, access_type,
@@ -367,7 +364,7 @@
       list_params['list_description'] = ugettext(
           "An overview of the %s for this %s." % (
           list_params['name_plural'], params['name']))
-    
+
       new_list_content = list_helper.getListContent(
           request, list_params, filter, idx=index)
 
@@ -380,7 +377,7 @@
 
   def registerRole(self, role_name, role_view):
     """Adds a role to the role_views param.
-    
+
     Args:
       role_name: The name of the role that needs to be added
       role_view: The view that needs to be added to role_views.