X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Fgvoice%2Fconversations.py;h=809d0fc76e72b1f7a9a8a7dfe041083147f2af1e;hp=d0f80e9456315b2ded5b064ab506f236be23831f;hb=aaa459cb42c730e63f7fc05b49bc198be3140cb5;hpb=7e81315ee610f630a3d17d07ab3bee9c50497bce diff --git a/src/gvoice/conversations.py b/src/gvoice/conversations.py index d0f80e9..809d0fc 100644 --- a/src/gvoice/conversations.py +++ b/src/gvoice/conversations.py @@ -66,7 +66,7 @@ class Conversations(object): isConversationUpdated = True except RuntimeError, e: if False: - _moduleLogger.info("%s Skipping conversation for %r because '%s'" % (self._name, key, e)) + _moduleLogger.debug("%s Skipping conversation for %r because '%s'" % (self._name, key, e)) isConversationUpdated = False if isConversationUpdated: @@ -104,6 +104,11 @@ class MergedConversations(object): self._remove_repeats(similarConversation, newConversation) self._conversations.append(newConversation) + def to_dict(self): + selfDict = {} + selfDict["conversations"] = [conv.to_dict() for conv in self._conversations] + return selfDict + @property def conversations(self): return self._conversations