Changeset 10248 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 29 May 2013, 06:46:54 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r10247 r10248 2875 2875 def _set_exporter_values(self): 2876 2876 # We provide all student exporters, nothing else, yet. 2877 # Bursary Officers don't have the general exportData permission 2878 # and are only allowed to export bursary data. 2879 if not checkPermission('waeup.exportData', self.context): 2880 self.exporters = [('Bursary Data', 'bursary')] 2881 return 2877 2882 exporters = [] 2878 2883 for name in EXPORTER_NAMES: … … 2947 2952 """ 2948 2953 grok.context(VirtualFacultiesExportJobContainer) 2949 2950 def _set_exporter_values(self):2951 # Only Bursary Officers will use this export. They must2952 # not be allowed to export regular student data at faculties level2953 self.exporters = [('Bursary Data', 'bursary')]2954 return2955 2954 2956 2955 class DepartmentExportJobContainerJobConfig(ExportJobContainerJobConfig): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r10247 r10248 2886 2886 self.browser.getControl("Configure new export").click() 2887 2887 # Only the bursary exporter us available ot this level 2888 self.assertFalse('<option value="students">' in self.browser.contents)2889 self.assertTrue('<option value="bursary">' in self.browser.contents)2888 #self.assertFalse('<option value="students">' in self.browser.contents) 2889 #self.assertTrue('<option value="bursary">' in self.browser.contents) 2890 2890 self.browser.getControl(name="exporter").value = ['bursary'] 2891 2891 self.browser.getControl(name="session").value = ['2004']
Note: See TracChangeset for help on using the changeset viewer.