equal
deleted
inserted
replaced
675 self.deny(django_args) |
675 self.deny(django_args) |
676 |
676 |
677 new_args = {'scope_path': program.scope_path } |
677 new_args = {'scope_path': program.scope_path } |
678 self.checkHasActiveRole(new_args, host_logic) |
678 self.checkHasActiveRole(new_args, host_logic) |
679 |
679 |
680 |
|
681 @allowDeveloper |
680 @allowDeveloper |
682 @denySidebar |
681 @denySidebar |
683 def checkIsActivePeriod(self, django_args, period_name, key_name_arg): |
682 def checkIsActivePeriod(self, django_args, period_name, key_name_arg): |
684 """Checks if the given period is active for the given program. |
683 """Checks if the given period is active for the given program. |
685 |
684 |
711 return |
710 return |
712 |
711 |
713 raise out_of_band.AccessViolation(message_fmt=DEF_PAGE_INACTIVE_MSG) |
712 raise out_of_band.AccessViolation(message_fmt=DEF_PAGE_INACTIVE_MSG) |
714 |
713 |
715 def checkCanCreateOrgApp(self, django_args, period_name): |
714 def checkCanCreateOrgApp(self, django_args, period_name): |
|
715 """Checks to see if the program in the scope_path is accepting org apps |
|
716 """ |
|
717 |
716 if 'seed' in django_args: |
718 if 'seed' in django_args: |
717 return self.checkIsActivePeriod(django_args['seed'], |
719 return self.checkIsActivePeriod(django_args['seed'], |
718 period_name, 'scope_path') |
720 period_name, 'scope_path') |
719 else: |
721 else: |
720 return |
722 return |
721 |
723 |
722 |
|
723 @allowDeveloper |
724 @allowDeveloper |
724 def checkCanEditGroupApp(self, django_args, group_app_logic): |
725 def checkCanEditGroupApp(self, django_args, group_app_logic): |
725 """Checks if the group_app in args is valid to be edited by the current user. |
726 """Checks if the group_app in args is valid to be edited by the current user. |
726 |
727 |
727 Args: |
728 Args: |
772 |
773 |
773 if entity: |
774 if entity: |
774 return |
775 return |
775 |
776 |
776 raise out_of_band.AccessViolation(message_fmt=DEF_REVIEW_COMPLETED_MSG) |
777 raise out_of_band.AccessViolation(message_fmt=DEF_REVIEW_COMPLETED_MSG) |
777 |
|
778 |
778 |
779 @allowDeveloper |
779 @allowDeveloper |
780 def checkIsApplicationAccepted(self, django_args, app_logic): |
780 def checkIsApplicationAccepted(self, django_args, app_logic): |
781 """Returns an alternate HTTP response if Google Account has no Club App |
781 """Returns an alternate HTTP response if Google Account has no Club App |
782 entity for the specified Club. |
782 entity for the specified Club. |