comparison bin/listpendingnotifications.py @ 241:df3065e4c76b

Include the rules revision in the output of listpendingnotifications.py and adapt sendnotificationmails.py and notification-template.txt accordingly
author Bernhard Herzog <bh@intevation.de>
date Wed, 14 Jan 2009 17:20:42 +0000
parents 7888fe374e11
children 1fcdffbeb9de
comparison
equal deleted inserted replaced
240:58cf7e6b7cca 241:df3065e4c76b
1 #! /usr/bin/python2.4 1 #! /usr/bin/python2.4
2 # Copyright (C) 2008 by Intevation GmbH 2 # Copyright (C) 2008, 2009 by Intevation GmbH
3 # Authors: 3 # Authors:
4 # Bernhard Herzog <bh@intevation.de> 4 # Bernhard Herzog <bh@intevation.de>
5 # 5 #
6 # This program is free software under the GPL (>=v2) 6 # This program is free software under the GPL (>=v2)
7 # Read the file COPYING coming with the software for details. 7 # Read the file COPYING coming with the software for details.
18 def list_notifications(config_file): 18 def list_notifications(config_file):
19 group = get_packager_group(config_file) 19 group = get_packager_group(config_file)
20 for track in group.get_package_tracks(): 20 for track in group.get_package_tracks():
21 for revision in track.get_revisions(): 21 for revision in track.get_revisions():
22 if revision.status.notification_mail.name == "notification_pending": 22 if revision.status.notification_mail.name == "notification_pending":
23 print "%s %s %d" % (revision.status.status.name, 23 print "%s %s %d %d" % (revision.status.status.name,
24 track.name, revision.revision) 24 track.name, revision.revision,
25 revision.rules_revision)
25 revision.status.notification_sent() 26 revision.status.notification_sent()
26 27
27 28
28 def main(): 29 def main():
29 options, args = parse_commandline() 30 options, args = parse_commandline()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)