Changeset 13204


Ignore:
Timestamp:
21 Aug 2015, 13:31:59 (9 years ago)
Author:
uli
Message:

Make EXPORTER_NAME a const (parameter).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/scripts.py

    r13203 r13204  
    3232APP_NAME = "uniben"
    3333
     34#: The name under which the exporter to use is registered.
     35EXPORTER_NAME = "students"
    3436
    3537def grok_bases():
     
    132134    print("  Export %s-%s to %s (mem: %s)" % (start, end, path, mem1))
    133135    tp1 = time.time()
    134     exporter = getUtility(ICSVExporter, name="students")
     136    exporter = getUtility(ICSVExporter, name=EXPORTER_NAME)
    135137    exporter.export(get_all_students(container, start, end), path)
    136138    tp2 = time.time()
Note: See TracChangeset for help on using the changeset viewer.