Mercurial > hg > bitsytweet
comparison bitsytweet/__init__.py @ 8:76b8f41da4cf default tip
note link to page
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 25 Nov 2010 13:48:58 -0800 |
parents | dfbb21128332 |
children |
comparison
equal
deleted
inserted
replaced
7:dfbb21128332 | 8:76b8f41da4cf |
---|---|
1 """ | 1 """ |
2 BitsyTweet - tweet your bitsyblog entries (horrid, I know) | 2 BitsyTweet - tweet your bitsyblog entries (horrid, I know) |
3 | |
4 http://twitter.com/oauth_clients/details/542023 | |
5 | |
3 """ | 6 """ |
4 | 7 |
5 import sys | 8 import sys |
6 import twitter | 9 import twitter |
7 | 10 |
46 | 49 |
47 # make a dummy class | 50 # make a dummy class |
48 class Dummy(object): | 51 class Dummy(object): |
49 def __init__(self, tweet): | 52 def __init__(self, tweet): |
50 self.tweet = tweet | 53 self.tweet = tweet |
54 self.privacy = 'public' | |
51 def snippet(self): | 55 def snippet(self): |
52 return self.tweet | 56 return self.tweet |
53 blog_entry = Dummy(' '.join(args)) | 57 blog_entry = Dummy(' '.join(args)) |
54 | 58 |
55 # tweet it | 59 # tweet it |