- Timestamp:
- 28 Sep 2012, 06:22:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r9222 r9251 27 27 StudentClearPage, StudentRejectClearancePage, 28 28 StudyCourseDisplayFormPage, msave, emit_lock_message) 29 from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS 29 30 from kofacustom.nigeria.students.browser import ( 30 31 NigeriaOnlinePaymentDisplayFormPage, 32 NigeriaStudentBaseManageFormPage, 31 33 NigeriaOnlinePaymentAddFormPage, 32 34 NigeriaExportPDFPaymentSlipPage) 35 #from waeup.uniben.students.interfaces import ICustomStudent 33 36 34 37 from waeup.uniben.students.interfaces import ( 35 38 ICustomStudentOnlinePayment, ICustomStudentStudyCourse) 36 39 from waeup.uniben.interfaces import MessageFactory as _ 40 41 class 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] 37 60 38 61 class CustomOnlinePaymentDisplayFormPage(NigeriaOnlinePaymentDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.