app/soc/views/helper/access.py
changeset 1237 b5bf2aa0f3f9
parent 1232 3bce6205e24e
child 1239 065e5bcf90f0
--- a/app/soc/views/helper/access.py	Sat Feb 07 00:50:49 2009 +0000
+++ b/app/soc/views/helper/access.py	Sat Feb 07 13:36:50 2009 +0000
@@ -677,7 +677,6 @@
     new_args = {'scope_path': program.scope_path }
     self.checkHasActiveRole(new_args, host_logic)
 
-
   @allowDeveloper
   @denySidebar
   def checkIsActivePeriod(self, django_args, period_name, key_name_arg):
@@ -713,13 +712,15 @@
     raise out_of_band.AccessViolation(message_fmt=DEF_PAGE_INACTIVE_MSG)
 
   def checkCanCreateOrgApp(self, django_args, period_name):
+    """Checks to see if the program in the scope_path is accepting org apps
+    """
+
     if 'seed' in django_args:
       return self.checkIsActivePeriod(django_args['seed'], 
           period_name, 'scope_path')
     else:
       return
 
-
   @allowDeveloper
   def checkCanEditGroupApp(self, django_args, group_app_logic):
     """Checks if the group_app in args is valid to be edited by the current user.
@@ -775,7 +776,6 @@
 
     raise out_of_band.AccessViolation(message_fmt=DEF_REVIEW_COMPLETED_MSG)
 
-
   @allowDeveloper
   def checkIsApplicationAccepted(self, django_args, app_logic):
     """Returns an alternate HTTP response if Google Account has no Club App