Changeset 8977


Ignore:
Timestamp:
12 Jul 2012, 05:50:42 (12 years ago)
Author:
Henrik Bettermann
Message:

clr_code and adm_code (actually all field meant for reimport) must not be readonly.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

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

    r8974 r8977  
    349349    grok.name('manage_base')
    350350    grok.require('waeup.manageStudent')
    351     form_fields = grok.AutoFields(IStudentBase).omit('student_id')
     351    form_fields = grok.AutoFields(IStudentBase).omit('student_id', 'adm_code')
    352352    grok.template('basemanagepage')
    353353    label = _('Manage base data')
     
    424424    def form_fields(self):
    425425        if self.context.is_postgrad:
    426             form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked')
    427         else:
    428             form_fields = grok.AutoFields(IUGStudentClearance).omit('clearance_locked')
     426            form_fields = grok.AutoFields(
     427                IPGStudentClearance).omit('clearance_locked')
     428        else:
     429            form_fields = grok.AutoFields(
     430                IUGStudentClearance).omit('clearance_locked')
    429431        return form_fields
    430432
     
    445447    def form_fields(self):
    446448        if self.context.is_postgrad:
    447             form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked')
    448         else:
    449             form_fields = grok.AutoFields(IUGStudentClearance).omit('clearance_locked')
     449            form_fields = grok.AutoFields(
     450                IPGStudentClearance).omit('clearance_locked')
     451        else:
     452            form_fields = grok.AutoFields(
     453                IUGStudentClearance).omit('clearance_locked')
    450454        return form_fields
    451455
     
    488492    def form_fields(self):
    489493        if self.context.is_postgrad:
    490             form_fields = grok.AutoFields(IPGStudentClearance)
    491         else:
    492             form_fields = grok.AutoFields(IUGStudentClearance)
     494            form_fields = grok.AutoFields(IPGStudentClearance).omit('clr_code')
     495        else:
     496            form_fields = grok.AutoFields(IUGStudentClearance).omit('clr_code')
    493497        return form_fields
    494498
     
    16231627        if self.context.is_postgrad:
    16241628            form_fields = grok.AutoFields(IPGStudentClearance).omit(
    1625                 'clearance_locked')
     1629                'clearance_locked', 'clr_code')
    16261630        else:
    16271631            form_fields = grok.AutoFields(IUGStudentClearance).omit(
    1628                 'clearance_locked')
     1632                'clearance_locked', 'clr_code')
    16291633        return form_fields
    16301634
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r8969 r8977  
    200200        title = _(u'PWD Activation Code'),
    201201        required = False,
    202         readonly = True,
     202        readonly = False,
    203203        )
    204204
     
    232232        title = _(u'CLR Activation Code'),
    233233        required = False,
    234         readonly = True,
     234        readonly = False,
    235235        )
    236236
Note: See TracChangeset for help on using the changeset viewer.