Changeset 12397 for main/waeup.ikoba/trunk/src
- Timestamp:
- 5 Jan 2015, 07:07:05 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/products
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/products/browser.py
r12362 r12397 151 151 grok.template('productpage') 152 152 #grok.template('basepage') 153 form_fields = grok.AutoFields(IProduct).omit('terms_and_conditions') 154 pnav = 1 153 pnav = 1 154 155 @property 156 def form_fields(self): 157 return grok.AutoFields( 158 self.context.form_fields_interface).omit('terms_and_conditions') 155 159 156 160 @property … … 175 179 grok.name('manage') 176 180 grok.require('waeup.manageProducts') 177 form_fields = grok.AutoFields(IProduct).omit('product_id')178 181 grok.template('productmanagepage') 179 182 pnav = 1 … … 182 185 tabtwoactions1 = [_('Remove selected local roles')] 183 186 tabtwoactions2 = [_('Add local role')] 187 188 189 @property 190 def form_fields(self): 191 return grok.AutoFields( 192 self.context.form_fields_interface).omit('product_id') 184 193 185 194 def label(self): -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/product.py
r12361 r12397 41 41 grok.provides(IProduct) 42 42 #grok.baseclass() 43 44 form_fields_interface = IProduct 43 45 44 46 local_roles = [
Note: See TracChangeset for help on using the changeset viewer.