- Timestamp:
- 2 Dec 2014, 14:38:31 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12112 r12119 47 47 from waeup.ikoba.browser.interfaces import ICaptchaManager 48 48 from waeup.ikoba.mandates.mandate import PasswordMandate 49 from waeup.ikoba.widgets.hrefwidget import HREFDisplayWidget 49 50 from waeup.ikoba.utils.helpers import get_current_principal, to_timezone, now 50 51 from waeup.ikoba.customers.interfaces import ( … … 68 69 if changed_fields: 69 70 changed_fields = reduce(lambda x,y: x+y, changed_fields.values()) 70 if 'product ' in changed_fields and data['product'] is not None:71 view.context.last_product_id = data['product '].product_id71 if 'product_object' in changed_fields and data['product_object'] is not None: 72 view.context.last_product_id = data['product_object'].product_id 72 73 notify(grok.ObjectModifiedEvent(view.context)) 73 74 fields_string = ' + '.join(changed_fields) … … 1155 1156 @property 1156 1157 def form_fields(self): 1157 returngrok.AutoFields(self.context.form_fields_interface).omit(1158 form_fields = grok.AutoFields(self.context.form_fields_interface).omit( 1158 1159 'last_transition_date') 1160 for field in form_fields: 1161 if field.__name__.endswith('_object'): 1162 form_fields[field.__name__].custom_widget = HREFDisplayWidget 1163 return form_fields 1159 1164 1160 1165 @property
Note: See TracChangeset for help on using the changeset viewer.