source program suport in twitter
authormicroft <microft@joker>
Sat, 20 Jun 2009 23:51:32 +0000 (00:51 +0100)
committermicroft <microft@joker>
Sat, 20 Jun 2009 23:51:32 +0000 (00:51 +0100)
gwibber/microblog/twitter.py

index dce3175..ab1b2cc 100644 (file)
@@ -58,6 +58,9 @@ class Message:
     self.time = support.parse_time(data["created_at"])
     self.is_private  = False
 
+    # set the program source of the message
+    self.source = data.get('source',False)
+
     if "user" in data:
       user = data["user"]
       self.reply_nick = data["in_reply_to_screen_name"]