From f4150479a824b51b2e61d3970923cb8f212eab54 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 10 Oct 2012 16:57:21 -0400 Subject: [PATCH] Rename Recipient.CLASS to Recipient.STREAM. (imported from commit a530194163f7260c73921137fa1ff671f14516f6) --- zephyr_mirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index 715dcf1..dd0b4cc 100644 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -153,7 +153,7 @@ def process_loop(log): 'zsig' : zsig, # logged here but not used by app 'content' : body } else: - zeph = { 'type' : 'class', + zeph = { 'type' : 'stream', 'time' : str(notice.time), 'sender' : sender, 'class' : notice.cls.lower(), @@ -221,7 +221,7 @@ def forward_to_zephyr(message): for line in cleaned_content.split("\n")) 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"), auth=True, cls=message["display_recipient"], instance=message["instance"])