Ignore:
Timestamp:
28 Nov 2013, 16:14:39 (11 years ago)
Author:
Henrik Bettermann
Message:

Start interpreting students as customers.

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  
    2929    StudentBasePDFFormPage, ExportPDFCourseRegistrationSlipPage,
    3030    CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
    31     msave, emit_lock_message)
    32 from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket
     31    msave, emit_lock_message, StudyCourseDisplayFormPage,
     32    StudyCourseManageFormPage)
     33from waeup.kofa.students.interfaces import (
     34    IStudentsUtils, ICourseTicket)
    3335from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS
    3436from kofacustom.nigeria.students.browser import (
     
    4345from kofacustom.ekodisco.students.interfaces import (
    4446    ICustomStudentOnlinePayment, ICustomStudentStudyCourse,
    45     ICustomStudentStudyLevel)
     47    ICustomStudentStudyLevel, ICustomStudentStudyCourse,
     48    ICustomStudentStudyCourse)
    4649from kofacustom.ekodisco.interfaces import MessageFactory as _
    4750
     51
     52class 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
     61class 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  
    3737
    3838    @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):
    4340        return False
    4441
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/studycourse.py

    r10770 r10804  
    3535    grok.provides(ICustomStudentStudyCourse)
    3636
     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
    3748CustomStudentStudyCourse = attrs_to_fields(CustomStudentStudyCourse)
    3849
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/viewlets.py

    r10772 r10804  
    1717##
    1818
    19 from waeup.kofa.students.viewlets import StudentsTab
     19from waeup.kofa.students.viewlets import (
     20    StudentsTab, AdmissionSlipActionButton, StudentManageClearanceLink,
     21    StudentManagePersonalLink, StudentManageAccommodationLink)
    2022
    2123from kofacustom.ekodisco.interfaces import MessageFactory as _
     
    2527    """
    2628
    27     @property
    28     def link_target(self):
    29         return None
     29    #@property
     30    #def link_target(self):
     31    #    return None
     32
     33class AdmissionSlipActionButton(AdmissionSlipActionButton):
     34    target = ''
     35
     36class StudentManageClearanceLink(StudentManageClearanceLink):
     37    link = ''
     38
     39class CustomStudentManagePersonalLink(StudentManagePersonalLink):
     40    link = ''
     41
     42class CustomStudentManageAccommodationLink(StudentManageAccommodationLink):
     43    link = ''
Note: See TracChangeset for help on using the changeset viewer.