app/soc/views/models/student.py
changeset 2922 6e373954bbf6
parent 2919 cb677410c0f1
child 2927 ac4f93519855
equal deleted inserted replaced
2921:8170c1de0ca6 2922:6e373954bbf6
    27 from django import forms
    27 from django import forms
    28 from django.utils.translation import ugettext
    28 from django.utils.translation import ugettext
    29 
    29 
    30 from soc.logic import cleaning
    30 from soc.logic import cleaning
    31 from soc.logic import dicts
    31 from soc.logic import dicts
       
    32 from soc.logic.models import mentor as mentor_logic
       
    33 from soc.logic.models import org_admin as org_admin_logic
    32 from soc.logic.models import program as program_logic
    34 from soc.logic.models import program as program_logic
    33 from soc.logic.models import student as student_logic
    35 from soc.logic.models import student as student_logic
    34 from soc.logic.models import user as user_logic
    36 from soc.logic.models import user as user_logic
    35 from soc.views import out_of_band
    37 from soc.views import out_of_band
    36 from soc.views.helper import access
    38 from soc.views.helper import access
    64     rights['delete'] = ['checkIsDeveloper']
    66     rights['delete'] = ['checkIsDeveloper']
    65     rights['apply'] = [
    67     rights['apply'] = [
    66         'checkIsUser',
    68         'checkIsUser',
    67         ('checkIsActivePeriod', 
    69         ('checkIsActivePeriod', 
    68          ['student_signup', 'scope_path', program_logic.logic]),
    70          ['student_signup', 'scope_path', program_logic.logic]),
    69         ('checkIsNotParticipatingInProgramInScope', [program_logic.logic]),
    71         ('checkIsNotParticipatingInProgramInScope', [program_logic.logic,
       
    72         student_logic.logic, org_admin_logic.logic, mentor_logic.logic]),
    70         ]
    73         ]
    71     rights['manage'] = [('checkIsMyActiveRole', student_logic.logic)]
    74     rights['manage'] = [('checkIsMyActiveRole', student_logic.logic)]
    72     rights['list_projects'] = [
    75     rights['list_projects'] = [
    73         ('checkHasActiveRoleForScope', student_logic.logic),
    76         ('checkHasActiveRoleForScope', student_logic.logic),
    74         ('checkIsAfterEvent', ['accepted_students_announced_deadline',
    77         ('checkIsAfterEvent', ['accepted_students_announced_deadline',