From 6b7a996389c70f53b976edf88a9472baf9b94f7e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 2 Oct 2012 18:04:08 -0400 Subject: [PATCH] Rename log_zephyr to log_message. (imported from commit 81baa2619148790ca6d814bf83e14651f45f512e) --- zephyr/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/models.py b/zephyr/models.py index 794b142d99..976434a3d0 100644 --- a/zephyr/models.py +++ b/zephyr/models.py @@ -256,7 +256,7 @@ def get_user_profile_by_id(uid): return user_hash[uid] return UserProfile.objects.get(id=uid) -def log_zephyr(zephyr): +def log_message(zephyr): if not os.path.exists(settings.ZEPHYR_LOG + '.lock'): file(settings.ZEPHYR_LOG + '.lock', "w").write("0") lock = open(settings.ZEPHYR_LOG + '.lock', 'r') @@ -275,7 +275,7 @@ def do_send_message(zephyr, synced_from_mit=False, no_log=False): mit_sync_table[zephyr.id] = synced_from_mit # Log the message to our message log for populate_db to refill if not no_log: - log_zephyr(zephyr) + log_message(zephyr) if zephyr.recipient.type == Recipient.PERSONAL: recipients = list(set([get_user_profile_by_id(zephyr.recipient.type_id),