Changeset 9803 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 15 Dec 2012, 16:36:40 (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
r9797 r9803 2567 2567 return 2568 2568 2569 def update(self, START=None, session=None, level=None): 2569 def _set_mode_values(self): 2570 utils = getUtility(IKofaUtils) 2571 self.modes = [(value, key) for key, value in 2572 utils.STUDY_MODES_DICT.items()] 2573 self.modes +=[('All Modes', 'all')] 2574 return 2575 2576 def update(self, START=None, session=None, level=None, mode=None): 2570 2577 self._set_session_values() 2571 2578 self._set_level_values() 2579 self._set_mode_values() 2572 2580 if START is None: 2573 2581 return … … 2576 2584 if level == 'all': 2577 2585 level = None 2586 if mode == 'all': 2587 mode = None 2578 2588 code = self.context.__parent__.code 2579 2589 self.context.start_export_job('students', self.request.principal.id, 2580 2590 current_session=session, 2581 2591 current_level=level, 2592 current_mode=mode, 2582 2593 depcode=code) 2583 2594 self.flash('Export started for students from %s ' -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/exportjobsjobconfig.pt
r9797 r9803 24 24 </select> 25 25 <br /> 26 <label for="mode" class="span2"> 27 Study Mode 28 </label> 29 30 <select name="mode"> 31 <option tal:repeat="item view/modes" 32 tal:attributes="value python:item[1]"> 33 <span tal:replace="python: item[0]">ug_ft</span> 34 </option> 35 </select> 36 <br /> 26 37 <hr /> 27 38 <input type="submit" name="START" value="Create"
Note: See TracChangeset for help on using the changeset viewer.