fontanon patch, use location and return message at send!
authordanigm <dani@danigm.net>
Mon, 13 Jul 2009 10:30:49 +0000 (12:30 +0200)
committerdanigm <dani@danigm.net>
Mon, 13 Jul 2009 10:30:49 +0000 (12:30 +0200)
gwibber/microblog/sweetter.py
po/gwibber.pot

index 2ab40de..8186a5f 100644 (file)
@@ -54,6 +54,7 @@ class Message:
 
     self.sender = data.user
     self.sender_nick = data.user
+    self.sender_location = data.location
     self.image = data.avatar
     self.url = "http://sweetter.net/" + data.user
     self.profile_url = "gwibber:user/%s/%s" % (self.account.id, data.user)
@@ -110,7 +111,11 @@ class Client:
       yield Message(self, data)
 
   def send(self, message):
-    self.sweetter.post(message)
+    data = self.sweetter.post(message)[0]
+    comment = support.pysweetter.Comment(data['sweet'], data['user'], 
+            "http://sweetter.net"+data['avatar'], data['created'], 
+            data['location'], data['id'])
+    return Message(self, comment)
 
   def public_enabled(self):
     return self.account["public_enabled"] and \
index 27f7126..20c84b7 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-07-08 17:33+0200\n"
+"POT-Creation-Date: 2009-07-12 19:04+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -193,7 +193,7 @@ msgstr ""
 msgid "Debug Output"
 msgstr ""
 
-#: ../gwibber/client.py:1150
+#: ../gwibber/client.py:1127
 #, python-format
 msgid "Last update: %s"
 msgstr ""