Changeset 11987 for main/waeup.ikoba/trunk/src
- Timestamp:
- 19 Nov 2014, 07:36:31 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/files.py
r11985 r11987 38 38 grok.context(IIkobaObject) # Make IIkobaObject the default context 39 39 grok.templatedir('browser_templates') 40 41 ALLOWED_FILE_EXTENSIONS = ('jpg', 'png', 'pdf', 'tif', 'fpm') 40 42 41 43 … … 109 111 """ 110 112 grok.baseclass() 111 grok.context(ICustomer)112 113 grok.viewletmanager(FileManager) 113 grok.view(CustomerBaseDisplayFormPage)114 114 template = default_filedisplay_template 115 115 grok.order(1) 116 grok.require('waeup.viewCustomer')117 116 label = _(u'File') 118 117 title = _(u'Scan') … … 133 132 """ 134 133 grok.baseclass() 135 grok.context(ICustomer)136 134 grok.viewletmanager(FileManager) 137 grok.view(CustomerBaseManageFormPage)138 135 template = default_fileupload_template 139 grok.require('waeup.uploadCustomerFile')140 136 tab_redirect = '#tab2-top' 141 137 mus = 1024 * 150 … … 190 186 grok.order(1) 191 187 grok.context(ICustomer) 188 grok.view(CustomerBaseDisplayFormPage) 192 189 grok.require('waeup.viewCustomer') 193 190 grok.template('imagedisplay') … … 201 198 grok.order(1) 202 199 grok.context(ICustomer) 200 grok.view(CustomerBaseManageFormPage) 203 201 grok.require('waeup.manageCustomer') 204 202 grok.template('imageupload') -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/viewlets.py
r11986 r11987 24 24 from waeup.ikoba.browser.viewlets import ( 25 25 PrimaryNavTab, ManageActionButton, AddActionButton) 26 from waeup.ikoba.browser.layout import ( 27 default_primary_nav_template, default_filedisplay_template, 28 default_fileupload_template) 26 from waeup.ikoba.browser.layout import default_primary_nav_template 29 27 from waeup.ikoba.customers.interfaces import ( 30 28 ICustomer, ICustomersContainer)
Note: See TracChangeset for help on using the changeset viewer.