Rename Recipient.CLASS to Recipient.STREAM.

(imported from commit a530194163f7260c73921137fa1ff671f14516f6)
This commit is contained in:
Tim Abbott 2012-10-10 16:57:21 -04:00
parent 9915ebf3ed
commit f4150479a8

View file

@ -153,7 +153,7 @@ def process_loop(log):
'zsig' : zsig, # logged here but not used by app 'zsig' : zsig, # logged here but not used by app
'content' : body } 'content' : body }
else: else:
zeph = { 'type' : 'class', zeph = { 'type' : 'stream',
'time' : str(notice.time), 'time' : str(notice.time),
'sender' : sender, 'sender' : sender,
'class' : notice.cls.lower(), 'class' : notice.cls.lower(),
@ -221,7 +221,7 @@ def forward_to_zephyr(message):
for line in cleaned_content.split("\n")) for line in cleaned_content.split("\n"))
print "Sending message from %s humbug=>zephyr at %s" % (message["sender_email"], datetime.datetime.now()) print "Sending message from %s humbug=>zephyr at %s" % (message["sender_email"], datetime.datetime.now())
if message['type'] == "class": if message['type'] == "stream":
zeph = zephyr.ZNotice(sender=message["sender_email"].replace("mit.edu", "ATHENA.MIT.EDU"), zeph = zephyr.ZNotice(sender=message["sender_email"].replace("mit.edu", "ATHENA.MIT.EDU"),
auth=True, cls=message["display_recipient"], auth=True, cls=message["display_recipient"],
instance=message["instance"]) instance=message["instance"])