Ignore:
Timestamp:
16 Jun 2015, 14:10:57 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename views.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
3 edited

Legend:

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

    r12879 r13063  
    2828from waeup.kofa.students.browser import (
    2929    StudyLevelEditFormPage, StudyLevelDisplayFormPage,
    30     StudentBasePDFFormPage, ExportPDFCourseRegistrationSlipPage,
     30    StudentBasePDFFormPage, ExportPDFCourseRegistrationSlip,
    3131    CourseTicketDisplayFormPage, StudentTriggerTransitionFormPage,
    3232    msave, emit_lock_message,
    33     StudentActivatePage, StudentDeactivatePage,
    34     ExportPDFTranscriptPage)
     33    StudentActivateView, StudentDeactivateView,
     34    ExportPDFTranscriptSlip)
    3535from waeup.kofa.students.workflow import (CREATED, ADMITTED, PAID,
    3636    CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, VALIDATED,
     
    4343    NigeriaStudentClearanceEditFormPage,
    4444    NigeriaOnlinePaymentAddFormPage,
    45     NigeriaExportPDFPaymentSlipPage,
    46     NigeriaExportPDFClearanceSlipPage,
     45    NigeriaExportPDFPaymentSlip,
     46    NigeriaExportPDFClearanceSlip,
    4747    NigeriaStudentPersonalDisplayFormPage,
    4848    NigeriaStudentPersonalManageFormPage
     
    111111        'p_category')
    112112
    113 class CustomExportPDFPaymentSlipPage(NigeriaExportPDFPaymentSlipPage):
     113class CustomExportPDFPaymentSlip(NigeriaExportPDFPaymentSlip):
    114114    """Deliver a PDF slip of the context.
    115115    """
     
    121121
    122122
    123 class CustomExportPDFClearanceSlipPage(NigeriaExportPDFClearanceSlipPage):
     123class CustomExportPDFClearanceSlip(NigeriaExportPDFClearanceSlip):
    124124    """Deliver a PDF slip of the context.
    125125    """
     
    148148
    149149
    150 class ExportClearanceInvitationSlipPage(UtilityView, grok.View):
     150class ExportClearanceInvitationSlip(UtilityView, grok.View):
    151151    """Deliver an invitation letter to physical clearance.
    152152
     
    273273    grok.template('studylevelpage')
    274274
    275 class CustomExportPDFCourseRegistrationSlipPage(
    276     ExportPDFCourseRegistrationSlipPage):
     275class CustomExportPDFCourseRegistrationSlip(
     276    ExportPDFCourseRegistrationSlip):
    277277    """Deliver a PDF slip of the context.
    278278    """
     
    336336            )
    337337
    338 class UnibenExportPDFCourseResultSlipPage(ExportPDFCourseRegistrationSlipPage):
     338class UnibenExportPDFCourseResultSlip(ExportPDFCourseRegistrationSlip):
    339339    """Deliver a PDF slip of the context.
    340340    """
     
    408408    form_fields = grok.AutoFields(ICourseTicket).omit('score')
    409409
    410 class CustomStudentActivatePage(StudentActivatePage):
     410class CustomStudentActivateView(StudentActivateView):
    411411    """ Activate student account
    412412    """
     
    421421        return
    422422
    423 class CustomStudentDeactivatePage(StudentDeactivatePage):
     423class CustomStudentDeactivateView(StudentDeactivateView):
    424424    """ Deactivate student account
    425425    """
     
    433433        return
    434434
    435 class CustomExportPDFTranscriptPage(ExportPDFTranscriptPage):
     435class CustomExportPDFTranscriptSlip(ExportPDFTranscriptSlip):
    436436    """Deliver a PDF slip of the context.
    437437    """
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r12855 r13063  
    791791            self.app['datacenter'].storage, 'logs', 'students.log')
    792792        logcontent = open(logfile).read()
    793         self.assertTrue('zope.mgr - waeup.uniben.students.browser.CustomStudentDeactivatePage - '
     793        self.assertTrue('zope.mgr - waeup.uniben.students.browser.CustomStudentDeactivateView - '
    794794                        'B1000000 - account deactivated' in logcontent)
    795         self.assertTrue('zope.mgr - waeup.uniben.students.browser.CustomStudentActivatePage - '
     795        self.assertTrue('zope.mgr - waeup.uniben.students.browser.CustomStudentActivateView - '
    796796                        'B1000000 - account activated' in logcontent)
    797797
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r12855 r13063  
    2626    StudentFileDisplay, StudentFileUpload, StudentImage)
    2727from waeup.kofa.students.browser import (
    28     ExportPDFClearanceSlipPage, StudyCourseDisplayFormPage,
     28    ExportPDFClearanceSlip, StudyCourseDisplayFormPage,
    2929    StudyLevelDisplayFormPage, StudentClearanceDisplayFormPage)
    3030
     
    106106
    107107class JAMBLetterSlip(JAMBLetterDisplay):
    108     grok.view(ExportPDFClearanceSlipPage)
     108    grok.view(ExportPDFClearanceSlip)
    109109
    110110class JAMBLetterUpload(StudentFileUpload):
     
    134134
    135135class SecrCultsStatementSlip(SecrCultsStatementDisplay):
    136     grok.view(ExportPDFClearanceSlipPage)
     136    grok.view(ExportPDFClearanceSlip)
    137137
    138138class SecrCultsStatementUpload(StudentFileUpload):
     
    166166    Fingerprint minutiae is not printet.
    167167    """
    168     grok.view(ExportPDFClearanceSlipPage)
     168    grok.view(ExportPDFClearanceSlip)
    169169
    170170class LeftThumbPrintUpload(StudentFileUpload):
Note: See TracChangeset for help on using the changeset viewer.