changeset 1:b003ae6978fe

make api look like it should
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 07 Jul 2010 13:57:47 -0700
parents 56a9fb9ad9b4
children f0ee545bba37
files bitsytweet/__init__.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitsytweet/__init__.py	Wed Jul 07 13:31:37 2010 -0700
+++ b/bitsytweet/__init__.py	Wed Jul 07 13:57:47 2010 -0700
@@ -11,5 +11,6 @@
     self.password = password
     self.api = twitter.Api(username=self.username, password=self.password) 
 
-  def __call__(self, post):
-    self.api.PostUpdate(self.username, self.password, '')
+  def __call__(self, blog):
+    if blog.privacy == 'public': # only tweet public blogs
+      self.api.PostUpdate(self.username, self.password, '')