Changeset 10155 for main


Ignore:
Timestamp:
7 May 2013, 17:24:04 (12 years ago)
Author:
Henrik Bettermann
Message:

Also in AAUA we have 'special postgrad' students. These are postgrad students with regular ug workflow.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r10080 r10155  
    573573        allowed_transitions = [t for t in wf_info.getManualTransitions()
    574574            if not t[0].startswith('pay')]
    575         if self.context.is_postgrad:
     575        if self.context.is_postgrad and not self.context.is_special_postgrad:
    576576            allowed_transitions = [t for t in allowed_transitions
    577577                if not t[0] in FORBIDDEN_POSTGRAD_TRANS]
     
    24482448
    24492449    def _registerCourses(self, **data):
    2450         if self.context.student.is_postgrad:
     2450        if self.context.student.is_postgrad and \
     2451            not self.context.student.is_special_postgrad:
    24512452            self.flash(_(
    24522453                "You are a postgraduate student, "
  • main/waeup.kofa/trunk/src/waeup/kofa/students/student.py

    r10054 r10155  
    199199
    200200    @property
     201    def is_special_postgrad(self):
     202        is_special_postgrad = getattr(
     203            self.get('studycourse', None), 'is_special_postgrad', False)
     204        return is_special_postgrad
     205
     206    @property
    201207    def before_payment(self):
    202208        entry_session = getattr(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py

    r10059 r10155  
    3535    grok.implements(IStudentStudyCourse, IStudentNavigation)
    3636    grok.provides(IStudentStudyCourse)
     37
     38    is_special_postgrad = False
    3739
    3840    def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.