add comments twisty
authorMark Hammond <mhammond@skippinet.com.au>
Tue, 31 Mar 2009 23:42:49 +1100
branchtwisty
changeset 150 25d0f986332b4009160017cd2e17b703ee15a3ba
parent 149 93d6e2aa1a5068cd67c1d34a450a4d9c2cde07ff
child 151 684089de8f1a1da42f26c95c1262332c3c4ffaf5
push id1
push userroot
push dateWed, 08 Apr 2009 01:46:05 +0000
add comments
server/python/junius/proto/skype.py
--- a/server/python/junius/proto/skype.py
+++ b/server/python/junius/proto/skype.py
@@ -137,17 +137,17 @@ class TwistySkype(object):
         logger.info("Chat %r has %d items to process", chatname,
                     len(remaining))
         logger.debug("we've already seen %d items from this chat",
                      len(seen_chats))
         return self.conductor.coop.coiterate(
                     self.gen_items(chat, remaining, msgs_by_id))
 
     def gen_items(self, chat, todo, msgs_by_id):
-        tow = []
+        tow = [] # documents to write.
         for _, msgid in todo:
             if msgid is None:
                 # we haven't seen the chat itself - do that.
                 logger.debug("Creating new skype chat %r", chat.Name)
                 # make a 'deferred list' to fetch each property one at a time.
                 ds = [threads.deferToThread(chat._Property, p)
                       for p, _ in CHAT_PROPS]
                 yield defer.DeferredList(ds