- Timestamp:
- 28 Nov 2013, 16:14:39 (11 years ago)
- Location:
- main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/browser.py
r10770 r10804 29 29 StudentBasePDFFormPage, ExportPDFCourseRegistrationSlipPage, 30 30 CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage, 31 msave, emit_lock_message) 32 from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket 31 msave, emit_lock_message, StudyCourseDisplayFormPage, 32 StudyCourseManageFormPage) 33 from waeup.kofa.students.interfaces import ( 34 IStudentsUtils, ICourseTicket) 33 35 from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS 34 36 from kofacustom.nigeria.students.browser import ( … … 43 45 from kofacustom.ekodisco.students.interfaces import ( 44 46 ICustomStudentOnlinePayment, ICustomStudentStudyCourse, 45 ICustomStudentStudyLevel) 47 ICustomStudentStudyLevel, ICustomStudentStudyCourse, 48 ICustomStudentStudyCourse) 46 49 from kofacustom.ekodisco.interfaces import MessageFactory as _ 47 50 51 52 class CustomStudyCourseDisplayFormPage(StudyCourseDisplayFormPage): 53 """ Page to display the student study course data 54 """ 55 grok.context(ICustomStudentStudyCourse) 56 grok.template('studycoursepage') 57 58 form_fields = grok.AutoFields(ICustomStudentStudyCourse).select( 59 'certificate', 'entry_session', 'current_session') 60 61 class CustomStudyCourseManageFormPage(StudyCourseManageFormPage): 62 """ Page to edit the student study course data 63 """ 64 grok.context(ICustomStudentStudyCourse) 65 grok.template('studycoursemanagepage') 66 67 form_fields = grok.AutoFields(ICustomStudentStudyCourse).select( 68 'certificate', 'entry_session', 'current_session') -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/student.py
r10770 r10804 37 37 38 38 @property 39 def transcript_enabled(self): 40 user = get_current_principal() 41 if user.id in ('admin', 'isouaba', 'niyi', 'delejason'): 42 return True 39 def is_postgrad(self): 43 40 return False 44 41 -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/studycourse.py
r10770 r10804 35 35 grok.provides(ICustomStudentStudyCourse) 36 36 37 38 @property 39 def is_postgrad(self): 40 return False 41 42 43 @property 44 def next_session_allowed(self): 45 return True 46 47 37 48 CustomStudentStudyCourse = attrs_to_fields(CustomStudentStudyCourse) 38 49 -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/viewlets.py
r10772 r10804 17 17 ## 18 18 19 from waeup.kofa.students.viewlets import StudentsTab 19 from waeup.kofa.students.viewlets import ( 20 StudentsTab, AdmissionSlipActionButton, StudentManageClearanceLink, 21 StudentManagePersonalLink, StudentManageAccommodationLink) 20 22 21 23 from kofacustom.ekodisco.interfaces import MessageFactory as _ … … 25 27 """ 26 28 27 @property 28 def link_target(self): 29 return None 29 #@property 30 #def link_target(self): 31 # return None 32 33 class AdmissionSlipActionButton(AdmissionSlipActionButton): 34 target = '' 35 36 class StudentManageClearanceLink(StudentManageClearanceLink): 37 link = '' 38 39 class CustomStudentManagePersonalLink(StudentManagePersonalLink): 40 link = '' 41 42 class CustomStudentManageAccommodationLink(StudentManageAccommodationLink): 43 link = ''
Note: See TracChangeset for help on using the changeset viewer.