changeset 6f6feb1a0d2e in /home/hg/repos/gajim
author: Emmanuel Gil Peyrot linkmauve@linkmauve.fr branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=6f6feb1a0d2e description: Fix wrong variable names and forgotten imports in message_archiving.
diffstat:
src/common/message_archiving.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r debf41873d30 -r 6f6feb1a0d2e src/common/message_archiving.py --- a/src/common/message_archiving.py Sat Nov 05 14:58:34 2016 +0000 +++ b/src/common/message_archiving.py Sat Nov 05 15:02:46 2016 +0000 @@ -21,8 +21,12 @@ import nbxmpp from common import gajim from common import ged +from common import helpers from common.connection_handlers_events import ArchivingReceivedEvent
+from calendar import timegm +from time import localtime + import logging log = logging.getLogger('gajim.c.message_archiving')
@@ -225,7 +229,7 @@ msg=payload[0].getData(), nick=nick) elif payload[0].getName() == 'message': print('Not implemented') - chat = iq_obj.getTag('chat') + chat = obj.stanza.getTag('chat') if chat: with_ = chat.getAttr('with') start_ = chat.getAttr('start') @@ -266,7 +270,7 @@ del self.awaiting_answers[id_]
elif self.awaiting_answers[id_][0] == ARCHIVING_MODIFICATIONS_ARRIVED: - modified = iq_obj.getTag('modified') + modified = obj.stanza.getTag('modified') if modified: for element in modified.getChildren(): if element.getName() == 'changed':