1.1 --- a/tools/update_scheduling_modules.py Sun Feb 07 23:35:20 2016 +0100
1.2 +++ b/tools/update_scheduling_modules.py Mon Feb 08 00:14:53 2016 +0100
1.3 @@ -44,11 +44,26 @@
1.4
1.5 f = open(join(dirname, "manifest.py"), "w")
1.6 try:
1.7 - print >>f, "scheduling_functions = {}"
1.8 + print >>f, """\
1.9 +confirmation_functions = {}
1.10 +retraction_functions = {}
1.11 +scheduling_functions = {}
1.12 +"""
1.13 +
1.14 for filename in filenames:
1.15 module = splitext(filename)[0]
1.16 - print >>f, "from imiptools.handlers.scheduling.%s import scheduling_functions as l" % module
1.17 - print >>f, "scheduling_functions.update(l)"
1.18 +
1.19 + print >>f, """\
1.20 +from imiptools.handlers.scheduling.%s import (
1.21 + confirmation_functions as c,
1.22 + retraction_functions as r,
1.23 + scheduling_functions as s)
1.24 +
1.25 +confirmation_functions.update(c)
1.26 +retraction_functions.update(r)
1.27 +scheduling_functions.update(s)
1.28 +""" % module
1.29 +
1.30 finally:
1.31 f.close()
1.32