Changeset 8551


Ignore:
Timestamp:
29 May 2012, 22:37:16 (12 years ago)
Author:
Henrik Bettermann
Message:

Omit email and phone on the pdf application slip.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
2 edited

Legend:

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

    r8530 r8551  
    3939    ICustomApplicantOnlinePayment, IPUTMEApplicantEdit,
    4040    UG_OMIT_DISPLAY_FIELDS, PG_OMIT_DISPLAY_FIELDS,
     41    UG_OMIT_PDF_FIELDS, PG_OMIT_PDF_FIELDS,
    4142    UG_OMIT_MANAGE_FIELDS, PG_OMIT_MANAGE_FIELDS,
    4243    UG_OMIT_EDIT_FIELDS, PG_OMIT_EDIT_FIELDS, PUTME_OMIT_EDIT_FIELDS)
     
    6465class CustomPDFApplicationSlip(PDFApplicationSlip):
    6566
     67    note = _(u'<br /><br /><br />'
     68              'Comfirm your exam venue 72 hours to the exam.')
     69
    6670    @property
    6771    def form_fields(self):
     
    6973        if target is not None and target.startswith('pg'):
    7074            form_fields = grok.AutoFields(IPGApplicant)
    71             for field in PG_OMIT_DISPLAY_FIELDS:
     75            for field in PG_OMIT_PDF_FIELDS:
    7276                form_fields = form_fields.omit(field)
    7377        else:
    7478            form_fields = grok.AutoFields(IUGApplicant)
    75             for field in UG_OMIT_DISPLAY_FIELDS:
     79            for field in UG_OMIT_PDF_FIELDS:
    7680                form_fields = form_fields.omit(field)
    7781        return form_fields
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r8539 r8551  
    3535
    3636UG_OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted', 'password')
     37UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('email', 'phone')
    3738UG_OMIT_MANAGE_FIELDS = ()
    3839UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + ('locked', 'course_admitted',
     
    4344
    4445PG_OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted', 'password')
     46PG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('email', 'phone')
    4547PG_OMIT_MANAGE_FIELDS = ()
    4648PG_OMIT_EDIT_FIELDS = PG_OMIT_MANAGE_FIELDS + (
Note: See TracChangeset for help on using the changeset viewer.