Ignore:
Timestamp:
27 May 2012, 16:47:35 (12 years ago)
Author:
Henrik Bettermann
Message:

See r8530

File:
1 edited

Legend:

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

    r8528 r8531  
    3737from waeup.fceokene.applicants.interfaces import (
    3838    IPGApplicant, IUGApplicant, IPGApplicantEdit, IUGApplicantEdit,
    39     ICustomApplicantOnlinePayment,
     39    ICustomApplicantOnlinePayment, IPUTMEApplicantEdit,
    4040    UG_OMIT_DISPLAY_FIELDS, PG_OMIT_DISPLAY_FIELDS,
    4141    UG_OMIT_MANAGE_FIELDS, PG_OMIT_MANAGE_FIELDS,
    42     UG_OMIT_EDIT_FIELDS, PG_OMIT_EDIT_FIELDS)
     42    UG_OMIT_EDIT_FIELDS, PG_OMIT_EDIT_FIELDS, PUTME_OMIT_EDIT_FIELDS)
    4343from waeup.fceokene.interfaces import MessageFactory as _
    4444
     
    124124            for field in PG_OMIT_EDIT_FIELDS:
    125125                form_fields = form_fields.omit(field)
     126        elif target is not None and target.startswith('putme'):
     127            form_fields = grok.AutoFields(IPUTMEApplicantEdit)
     128            for field in PUTME_OMIT_EDIT_FIELDS:
     129                form_fields = form_fields.omit(field)
    126130        else:
    127131            form_fields = grok.AutoFields(IUGApplicantEdit)
Note: See TracChangeset for help on using the changeset viewer.