- Timestamp:
- 27 May 2023, 07:36:53 (19 months ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/browser/pages.py
r13395 r17423 20 20 SessionConfigurationAddFormPage, 21 21 SessionConfigurationManageFormPage, 22 ConfigurationContainerManageFormPage) 22 ConfigurationContainerManageFormPage, 23 DatacenterPage, ExportCSVPage) 24 from waeup.kofa.browser.reports import ReportsContainerPage 23 25 from waeup.kofa.interfaces import IConfigurationContainer 24 26 from waeup.aaue.interfaces import ( … … 43 45 """ 44 46 form_fields = grok.AutoFields(ICustomSessionConfiguration) 47 48 # Temporarily disable data export 49 50 class CustomExportCSVPage(ExportCSVPage): 51 52 def update(self): 53 if self.request.principal.id not in ( 54 'admin', 'zope.manager', 'zope.mgr', 'amadin'): 55 self.flash('Data export has been temporarily disabled.', 56 type='warning') 57 return self.redirect(self.url(self.context)) 58 return super(CustomExportCSVPage,self).update() 59 60 class CustomReportsContainerPage(ReportsContainerPage): 61 62 def update(self): 63 if self.request.principal.id not in ( 64 'admin', 'zope.managers', 'zope.mgrs', 'amadin'): 65 self.flash('Reports have been temporarily disabled.', 66 type='warning') 67 return self.redirect(self.application_url()) 68 return super(CustomReportsContainerPage,self).update()
Note: See TracChangeset for help on using the changeset viewer.