Rename log_zephyr to log_message.

(imported from commit 81baa2619148790ca6d814bf83e14651f45f512e)
This commit is contained in:
Tim Abbott 2012-10-02 18:04:08 -04:00
parent cca5f7b76a
commit 6b7a996389
1 changed files with 2 additions and 2 deletions

View File

@ -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),