1 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
9 from config import config
12 def __init__(self, g):
13 self.xml = StringIO.StringIO()
14 self.xml.write("<notification group-id='%s' builder='%s'>\n" % \
15 (g.id, config.builder))
18 sio = StringIO.StringIO()
19 self.xml.write("</notification>\n")
21 sio.write(gpg.sign(self.xml.read()))
28 def add_batch(self, b, s):
29 self.xml.write(" <batch id='%s' status='%s' />\n" % (b.b_id, s))
37 def add_batch(batch, status):
38 n.add_batch(batch, status)