Ignore:
Timestamp:
26 Jun 2015, 06:05:43 (9 years ago)
Author:
Henrik Bettermann
Message:

Remove manual clearance lock. Replace clearance_locked field by
property attribute.

File:
1 edited

Legend:

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

    r13089 r13103  
    638638    def form_fields(self):
    639639        if self.context.is_postgrad:
    640             form_fields = grok.AutoFields(
    641                 IPGStudentClearance).omit('clearance_locked')
    642         else:
    643             form_fields = grok.AutoFields(
    644                 IUGStudentClearance).omit('clearance_locked')
     640            form_fields = grok.AutoFields(IPGStudentClearance)
     641        else:
     642            form_fields = grok.AutoFields(IUGStudentClearance)
    645643        if not getattr(self.context, 'officer_comment'):
    646644            form_fields = form_fields.omit('officer_comment')
     
    669667    def form_fields(self):
    670668        if self.context.is_postgrad:
    671             form_fields = grok.AutoFields(
    672                 IPGStudentClearance).omit('clearance_locked')
    673         else:
    674             form_fields = grok.AutoFields(
    675                 IUGStudentClearance).omit('clearance_locked')
     669            form_fields = grok.AutoFields(IPGStudentClearance)
     670        else:
     671            form_fields = grok.AutoFields(IUGStudentClearance)
    676672        if not getattr(self.context, 'officer_comment'):
    677673            form_fields = form_fields.omit('officer_comment')
     
    24132409        if self.context.is_postgrad:
    24142410            form_fields = grok.AutoFields(IPGStudentClearance).omit(
    2415                 'clearance_locked', 'clr_code', 'officer_comment')
     2411                'clr_code', 'officer_comment')
    24162412        else:
    24172413            form_fields = grok.AutoFields(IUGStudentClearance).omit(
    2418                 'clearance_locked', 'clr_code', 'officer_comment')
     2414                'clr_code', 'officer_comment')
    24192415        return form_fields
    24202416
Note: See TracChangeset for help on using the changeset viewer.