- Timestamp:
- 1 Dec 2014, 09:59:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12099 r12103 51 51 ICustomer, ICustomersContainer, ICustomerRequestPW, ICustomersUtils, 52 52 ICustomerDocument, ICustomerDocumentsContainer, ICustomerCreate, 53 ICustomerPDFDocument, IContractsContainer, IContract, IContractEdit 53 ICustomerPDFDocument, IContractsContainer, IContract, IContractEdit, 54 ISampleContract, 54 55 ) 55 56 from waeup.ikoba.customers.catalog import search … … 1150 1151 grok.require('waeup.viewCustomer') 1151 1152 grok.template('contractpage') 1152 form_fields = grok.AutoFields(IContract).omit('last_transition_date') 1153 pnav = 4 1153 pnav = 4 1154 1155 @property 1156 def form_fields(self): 1157 return grok.AutoFields(self.context.form_fields_interface).omit( 1158 'last_transition_date') 1154 1159 1155 1160 @property … … 1165 1170 grok.require('waeup.manageCustomer') 1166 1171 grok.template('contracteditpage') 1167 form_fields = grok.AutoFields(IContract).omit('last_transition_date')1168 1172 pnav = 4 1169 1173 deletion_warning = _('Are you sure?') 1174 1175 @property 1176 def form_fields(self): 1177 return grok.AutoFields(self.context.form_fields_interface).omit( 1178 'last_transition_date') 1170 1179 1171 1180 @property … … 1184 1193 grok.name('edit') 1185 1194 grok.require('waeup.handleCustomer') 1186 form_fields = grok.AutoFields(IContractEdit).omit('last_transition_date') 1195 1196 @property 1197 def form_fields(self): 1198 return grok.AutoFields(self.context.edit_form_fields_interface).omit( 1199 'last_transition_date') 1187 1200 1188 1201 def update(self):
Note: See TracChangeset for help on using the changeset viewer.