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
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/locales/en/LC_MESSAGES/waeup.kofa.po

    r10800 r10804  
    206206
    207207msgid "Applicant Id"
    208 msgstr ""
     208msgstr "Subscriber Id"
    209209
    210210msgid "${a} <br /> Application Form ${b}"
     
    261261msgid "Edit application record"
    262262msgstr "Edit subscriber record"
    263 
    264 msgid "Download application slip"
    265 msgstr "Download subscriber data slip"
    266263
    267264msgid "Application"
     
    297294msgstr "Or simply forgot your customer id or password? Then request a new password <strong><a href=\"changepw\"> here</a></strong>."
    298295
     296msgid "Students"
     297msgstr "Customers"
     298
     299msgid "Student Id"
     300msgstr "Customer Id"
     301
     302msgid "Login as student"
     303msgstr "Login as customer"
     304
     305msgid "Transfer student"
     306msgstr "Transfer customer"
     307
     308msgid "Study Course"
     309msgstr "Main Contract"
     310
     311msgid "admitted"
     312msgstr "approved"
     313
     314msgid "Start new session"
     315msgstr "Start new subscription period"
     316
     317msgid "Current Session"
     318msgstr "Current Subscription Period"
     319
     320msgid "Entry Session"
     321msgstr "First Subscription Period"
     322
     323msgid "Application Slip"
     324msgstr "Subscription Slip"
     325
  • 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.