Changeset 9804 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 16 Dec 2012, 15:37:10 (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
r9803 r9804 68 68 ) 69 69 from waeup.kofa.students.catalog import search, StudentsQuery 70 from waeup.kofa.students.export import EXPORTER_NAMES 70 71 from waeup.kofa.students.studylevel import StudentStudyLevel, CourseTicket 71 72 from waeup.kofa.students.vocabularies import StudyLevelSource … … 2536 2537 return 2537 2538 if DISCARD and job_id: 2538 print "DISCARD: ", job_id2539 2539 entry = self.context.entry_from_job_id(job_id) 2540 2540 self.context.delete_export_entry(entry) … … 2574 2574 return 2575 2575 2576 def update(self, START=None, session=None, level=None, mode=None): 2576 def _set_exporter_values(self): 2577 # We provide all student exporters, nothing else, yet. 2578 exporters = [] 2579 for name in EXPORTER_NAMES: 2580 util = getUtility(ICSVExporter, name=name) 2581 exporters.append((util.title, name),) 2582 self.exporters = exporters 2583 2584 def update(self, START=None, session=None, level=None, mode=None, 2585 exporter=None): 2577 2586 self._set_session_values() 2578 2587 self._set_level_values() 2579 2588 self._set_mode_values() 2589 self._set_exporter_values() 2580 2590 if START is None: 2581 2591 return … … 2587 2597 mode = None 2588 2598 code = self.context.__parent__.code 2589 self.context.start_export_job( 'students', self.request.principal.id,2599 self.context.start_export_job(exporter, self.request.principal.id, 2590 2600 current_session=session, 2591 2601 current_level=level, -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/exportjobsjobconfig.pt
r9803 r9804 35 35 </select> 36 36 <br /> 37 <label for="mode" class="span2"> 38 Exporter 39 </label> 40 41 <select name="exporter"> 42 <option tal:repeat="item view/exporters" 43 tal:attributes="value python:item[1]"> 44 <span tal:replace="python: item[0]">Students</span> 45 </option> 46 </select> 47 <br /> 37 48 <hr /> 38 49 <input type="submit" name="START" value="Create"
Note: See TracChangeset for help on using the changeset viewer.