Ignore:
Timestamp:
1 Sep 2013, 08:11:34 (11 years ago)
Author:
Henrik Bettermann
Message:

Start implementation of 'Presentation of results to senate' report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py

    r10572 r10574  
    11## $Id$
    22##
    3 ## Copyright (C) 2012 Uli Fouquet & Henrik Bettermann
     3## Copyright (C) 2013 Uli Fouquet & Henrik Bettermann
    44## This program is free software; you can redistribute it and/or modify
    55## it under the terms of the GNU General Public License as published by
     
    3535    creation_dt_string = Attribute('Human readable report creation datetime')
    3636
    37 def get_students_by(faccode, depcode, session, level):
     37def get_students(faccode, depcode, session, level):
    3838    """Get students in a certain department who registered courses
    3939    in a certain session at a certain level.
     
    4242    """
    4343    site = grok.getSite()
    44     faccodes = tuple(sorted([x for x in site['faculties'].keys()],
    45                              key=lambda x: x.lower()))
    4644    cat = queryUtility(ICatalog, name="students_catalog")
    4745    result = cat.searchResults(
     
    142140        self.creation_dt_string = self.creation_dt.astimezone(
    143141            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)
    145143
    146144    def create_pdf(self):
Note: See TracChangeset for help on using the changeset viewer.