- Timestamp:
- 1 Sep 2013, 08:11:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
r10572 r10574 1 1 ## $Id$ 2 2 ## 3 ## Copyright (C) 201 2Uli Fouquet & Henrik Bettermann3 ## Copyright (C) 2013 Uli Fouquet & Henrik Bettermann 4 4 ## This program is free software; you can redistribute it and/or modify 5 5 ## it under the terms of the GNU General Public License as published by … … 35 35 creation_dt_string = Attribute('Human readable report creation datetime') 36 36 37 def get_students _by(faccode, depcode, session, level):37 def get_students(faccode, depcode, session, level): 38 38 """Get students in a certain department who registered courses 39 39 in a certain session at a certain level. … … 42 42 """ 43 43 site = grok.getSite() 44 faccodes = tuple(sorted([x for x in site['faculties'].keys()],45 key=lambda x: x.lower()))46 44 cat = queryUtility(ICatalog, name="students_catalog") 47 45 result = cat.searchResults( … … 142 140 self.creation_dt_string = self.creation_dt.astimezone( 143 141 getUtility(IKofaUtils).tzinfo).strftime("%Y-%m-%d %H:%M:%S %Z") 144 self.data = get_students _by(faccode, depcode, session, level)142 self.data = get_students(faccode, depcode, session, level) 145 143 146 144 def create_pdf(self):
Note: See TracChangeset for help on using the changeset viewer.