Changeset 12535


Ignore:
Timestamp:
1 Feb 2015, 07:27:38 (10 years ago)
Author:
Henrik Bettermann
Message:

Use correct interfaces.

File:
1 edited

Legend:

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

    r12533 r12535  
    725725    def form_fields(self):
    726726        if not self.is_requestable():
    727             return grok.AutoFields(ICustomer).select('email', 'phone')
    728         return grok.AutoFields(ICustomer).omit(
     727            return grok.AutoFields(
     728                self.context.form_fields_interface).select('email', 'phone')
     729        return grok.AutoFields(self.context.form_fields_interface).omit(
    729730            'suspended', 'suspended_comment', 'reg_number', 'customer_id')
    730731
     
    802803    @property
    803804    def form_fields(self):
    804         form_fields = grok.AutoFields(ICustomer)
     805        form_fields = grok.AutoFields(self.context.form_fields_interface)
    805806        for field in self.omit_fields:
    806807            form_fields = form_fields.omit(field)
Note: See TracChangeset for help on using the changeset viewer.