- Timestamp:
- 6 Dec 2016, 07:46:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/browser.py
r14310 r14313 17 17 ## 18 18 19 import grok 19 20 from zope.component import getUtility 20 21 from waeup.ikoba.interfaces import IIkobaUtils, IExtFileStore … … 38 39 39 40 def dataNotComplete(self): 40 store = getUtility(IExtFileStore)41 error = ''42 if not store.getFileByContext(self.context, attr=u'passport.jpg'):43 error += _('Passport picture is missing.')44 if error:45 return error46 41 return 42 43 @property 44 def form_fields(self): 45 if not self.is_requestable(): 46 return grok.AutoFields( 47 self.context.form_fields_interface).select( 48 'email', 'phone', 'inst', 'postal_address') 49 return grok.AutoFields(self.context.form_fields_interface).omit( 50 'suspended', 'suspended_comment', 'reg_number', 'customer_id')
Note: See TracChangeset for help on using the changeset viewer.