Ignore:
Timestamp:
16 May 2014, 08:37:29 (10 years ago)
Author:
Henrik Bettermann
Message:

Special applicants must not be able to edit locked, suspended and applicant_id fields.

Location:
main/waeup.kwarapoly/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/CHANGES.txt

    r11646 r11656  
    441.2dev (unreleased)
    55===================
     6
     7* Fixed: Special applicants must not be able to edit locked, suspended
     8  and applicant_id fields.
    69
    710* Use init_update and samePaymentMade methods.
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py

    r10847 r11656  
    128128    def form_fields(self):
    129129        if self.context.special:
    130             return grok.AutoFields(ISpecialApplicant)
     130            form_fields = grok.AutoFields(ISpecialApplicant)
     131            form_fields['applicant_id'].for_display = True
     132            return form_fields
    131133        form_fields = grok.AutoFields(ICustomUGApplicant)
    132134        if self.context.is_nd:
     
    148150
    149151        if self.context.special:
    150             return grok.AutoFields(ISpecialApplicant)
     152            form_fields = grok.AutoFields(ISpecialApplicant).omit(
     153                'locked', 'suspended')
     154            form_fields['applicant_id'].for_display = True
     155            return form_fields
    151156        form_fields = grok.AutoFields(ICustomUGApplicantEdit)
    152157        if self.context.is_nd:
Note: See TracChangeset for help on using the changeset viewer.