Ignore:
Timestamp:
1 Dec 2014, 14:43:16 (10 years ago)
Author:
Henrik Bettermann
Message:

Ease customization of STUDENT_EXPORTER_NAMES.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r12075 r12104  
    7171from waeup.kofa.datacenter import DataCenterFile
    7272
    73 from waeup.kofa.students.export import EXPORTER_NAMES as STUDENT_EXPORTERS
    7473from waeup.kofa.students.catalog import StudentQueryResultItem
     74from waeup.kofa.students.interfaces import IStudentsUtils
    7575
    7676FORBIDDEN_CHARACTERS = (160,)
     
    15811581    def getExporters(self):
    15821582        utils = getUtilitiesFor(ICSVExporter)
     1583        STUDENT_EXPORTER_NAMES = getUtility(
     1584            IStudentsUtils).STUDENT_EXPORTER_NAMES
    15831585        title_name_tuples = [
    15841586            (util.title, name) for name, util in utils
    1585             if not name in STUDENT_EXPORTERS]
     1587            if not name in STUDENT_EXPORTER_NAMES]
    15861588        # The exporter for access codes requires a special permission.
    15871589        if not checkPermission('waeup.manageACBatches', self.context):
Note: See TracChangeset for help on using the changeset viewer.