# HG changeset patch # User Jeff Hammel # Date 1278612823 25200 # Node ID 50f77774a20a48803887e829a54b415841871371 # Parent f0ee545bba37fcb34cf36e13c370e4f93ce35040 made tweeting work diff -r f0ee545bba37 -r 50f77774a20a bitsytweet/__init__.py --- a/bitsytweet/__init__.py Wed Jul 07 16:11:34 2010 -0700 +++ b/bitsytweet/__init__.py Thu Jul 08 11:13:43 2010 -0700 @@ -6,13 +6,13 @@ class BitsyTweet(object): - def __init__(self, bitysblog, username, password): + def __init__(self, bitsyblog, username, password): self.bitsyblog = bitsyblog self.username = username self.password = password self.api = twitter.Api(username=self.username, password=self.password) - def __call__(self, blog_entry): + def __call__(self, blog_entry, url): if blog_entry.privacy == 'public': # only tweet public blogs - tweet = '%s : %s' % (blog_entry.snippet(), 'foo') - self.api.PostUpdate(self.username, self.password, ) + tweet = '%s : %s' % (blog_entry.snippet(), url) + self.api.PostUpdate(tweet)