Changeset 9845 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 8 Jan 2013, 14:24:05 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r9839 r9845 206 206 exporter = getUtility(ICSVExporter, name=exporter_name) 207 207 exporter_title = getattr(exporter, 'title', 'Unknown') 208 args = ', '.join([str(x) for x in job.kwargs.values()]) 208 args = ', '.join(['%s=%s' % (item[0], item[1]) 209 for item in job.kwargs.items()]) 209 210 status = job.finished and 'ready' or 'running' 210 211 status = job.failed and 'FAILED' or status -
main/waeup.kofa/trunk/src/waeup/kofa/catalog.py
r9843 r9845 122 122 query = dict() 123 123 for idx_name, value in self._kw.items(): 124 if idx_name == 'cat ':124 if idx_name == 'catalog': 125 125 continue 126 126 if not isinstance(value, tuple): -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9844 r9845 2834 2834 # pass different keywords than 2835 2835 # for the (default) students_catalog 2836 cat ='coursetickets',2836 catalog='coursetickets', 2837 2837 session=session, 2838 2838 level=level, -
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r9844 r9845 123 123 # developers must look into catalog to see what keywords are 124 124 # valid. 125 if kw.get('cat ', None) == 'coursetickets':125 if kw.get('catalog', None) == 'coursetickets': 126 126 coursetickets = CourseTicketsQuery(**kw).query() 127 127 students = [] -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9844 r9845 573 573 # only course tickets which belong to this course are exported 574 574 exporter.export_filtered( 575 self.student, self.outfile, cat ='coursetickets', code='CRS1')575 self.student, self.outfile, catalog='coursetickets', code='CRS1') 576 576 result = open(self.outfile, 'rb').read() 577 577 self.assertEqual( … … 582 582 ) 583 583 exporter.export_filtered( 584 self.student, self.outfile, cat ='coursetickets', code='any code')584 self.student, self.outfile, catalog='coursetickets', code='any code') 585 585 result = open(self.outfile, 'rb').read() 586 586 self.assertEqual(
Note: See TracChangeset for help on using the changeset viewer.