Ignore:
Timestamp:
5 Jan 2015, 07:14:39 (10 years ago)
Author:
Henrik Bettermann
Message:

See previous revision comment.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12388 r12398  
    298298    grok.require('waeup.viewCustomer')
    299299    grok.template('basepage')
    300     form_fields = grok.AutoFields(ICustomer).omit(
    301         'password', 'suspended', 'suspended_comment')
    302     pnav = 4
     300    pnav = 4
     301
     302    @property
     303    def form_fields(self):
     304        return grok.AutoFields(
     305            self.context.form_fields_interface).omit(
     306            'password', 'suspended', 'suspended_comment')
    303307
    304308    @property
     
    329333    pnav = 4
    330334    form_fields = grok.AutoFields(IContactForm).select('subject', 'body')
     335
    331336
    332337    def update(self, subject=u'', body=u''):
     
    368373    grok.name('manage_base')
    369374    grok.require('waeup.manageCustomer')
    370     form_fields = grok.AutoFields(ICustomer).omit(
    371         'customer_id', 'adm_code', 'suspended')
    372375    grok.template('basemanagepage')
    373376    label = _('Manage base data')
    374377    pnav = 4
     378
     379    @property
     380    def form_fields(self):
     381        return grok.AutoFields(
     382            self.context.form_fields_interface).omit(
     383            'customer_id', 'adm_code', 'suspended')
    375384
    376385    def update(self):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/customer.py

    r12297 r12398  
    5454    temp_password_minutes = 10
    5555
     56    form_fields_interface = ICustomer
     57
    5658    def __init__(self):
    5759        super(Customer, self).__init__()
Note: See TracChangeset for help on using the changeset viewer.