Ignore:
Timestamp:
28 Sep 2012, 06:22:59 (12 years ago)
Author:
Henrik Bettermann
Message:

In Uniben we have special pg students which follow the ug workflow.

See ticket 838:

Whereas the full time LLM students are to register all the four courses once, the part time LLM students are only permitted to register any two of the four courses in their first year and the remaining two courses including any carryover in the second or third year. Presently they do not have any problem with full time LLM online course registration but they certainly are not happy with the way LLM part time students are registering their cousres online as if they are full time students.

File:
1 edited

Legend:

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

    r9222 r9251  
    2727    StudentClearPage, StudentRejectClearancePage,
    2828    StudyCourseDisplayFormPage, msave, emit_lock_message)
     29from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS
    2930from kofacustom.nigeria.students.browser import (
    3031    NigeriaOnlinePaymentDisplayFormPage,
     32    NigeriaStudentBaseManageFormPage,
    3133    NigeriaOnlinePaymentAddFormPage,
    3234    NigeriaExportPDFPaymentSlipPage)
     35#from waeup.uniben.students.interfaces import ICustomStudent
    3336
    3437from waeup.uniben.students.interfaces import (
    3538    ICustomStudentOnlinePayment, ICustomStudentStudyCourse)
    3639from waeup.uniben.interfaces import MessageFactory as _
     40
     41class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage):
     42    """ View to manage student base data
     43    """
     44    #grok.context(ICustomStudent)
     45
     46    def getTransitions(self):
     47        """Return a list of dicts of allowed transition ids and titles.
     48
     49        Each list entry provides keys ``name`` and ``title`` for
     50        internal name and (human readable) title of a single
     51        transition.
     52        """
     53        allowed_transitions = [t for t in self.wf_info.getManualTransitions()
     54            if not t[0].startswith('pay')]
     55        if self.context.is_postgrad and not self.context.is_special_postgrad:
     56            allowed_transitions = [t for t in allowed_transitions
     57                if not t[0] in FORBIDDEN_POSTGRAD_TRANS]
     58        return [dict(name='', title=_('No transition'))] +[
     59            dict(name=x, title=y) for x, y in allowed_transitions]
    3760
    3861class CustomOnlinePaymentDisplayFormPage(NigeriaOnlinePaymentDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.