Changeset 9375 for main/waeup.kofa/trunk


Ignore:
Timestamp:
21 Oct 2012, 20:58:15 (12 years ago)
Author:
Henrik Bettermann
Message:

Ease customization.

File:
1 edited

Legend:

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

    r9374 r9375  
    600600    grok.require('waeup.viewStudent')
    601601    prefix = 'form'
     602    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex')
    602603
    603604    @property
     
    631632    def render(self):
    632633        studentview = StudentBasePDFFormPage(self.context.student,
    633             self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex'))
     634            self.request, self.omit_fields)
    634635        students_utils = getUtility(IStudentsUtils)
    635636        return students_utils.renderPDF(
     
    990991    form_fields = grok.AutoFields(IStudentStudyLevel)
    991992    prefix = 'form'
     993    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex')
    992994
    993995    @property
     
    10241026        Score = translate(_('Score'), 'waeup.kofa', target_language=portal_language)
    10251027        studentview = StudentBasePDFFormPage(self.context.student,
    1026             self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex'))
     1028            self.request, self.omit_fields)
    10271029        students_utils = getUtility(IStudentsUtils)
    10281030        tabledata = sorted(self.context.values(),
     
    14151417    prefix = 'form'
    14161418    note = None
     1419    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex')
    14171420
    14181421    @property
     
    14351438        #    return
    14361439        studentview = StudentBasePDFFormPage(self.context.student,
    1437             self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex'))
     1440            self.request, self.omit_fields)
    14381441        students_utils = getUtility(IStudentsUtils)
    14391442        return students_utils.renderPDF(self, 'payment_slip.pdf',
     
    16451648    form_fields['booking_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    16461649    prefix = 'form'
     1650    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex')
    16471651
    16481652    @property
     
    16641668    def render(self):
    16651669        studentview = StudentBasePDFFormPage(self.context.student,
    1666             self.request, ('password', 'suspended', 'phone', 'adm_code', 'sex'))
     1670            self.request, self.omit_fields)
    16671671        students_utils = getUtility(IStudentsUtils)
    16681672        return students_utils.renderPDF(
Note: See TracChangeset for help on using the changeset viewer.