From adf929e225669046b88b6bef07bb1fadc84f2760 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 20 May 2010 14:51:04 -0400 Subject: [PATCH] Renamed application in preparation of creating a new repository for it --- README.markdown | 15 ++++----------- TODO | 2 +- default.glade | 2 +- mytwitter.conf => huginn.conf | 0 mytwitter.py => huginn.py | 10 +++++----- 5 files changed, 11 insertions(+), 18 deletions(-) rename mytwitter.conf => huginn.conf (100%) rename mytwitter.py => huginn.py (98%) diff --git a/README.markdown b/README.markdown index c792322..50dcf99 100644 --- a/README.markdown +++ b/README.markdown @@ -1,11 +1,4 @@ -mytwitter is a simple python twitter application. I wrote it for two reasons: - -1. No existing twitter app supports the Lists API - -2. An excuse to learn Python - - -While I doubt it will be terribly useful for anyone other than me, feel free to take it for a spin and let me know how it goes. +Huginn is a python twitter application. It started because no existing client supported the Lists API, but has grown to be a general-purpose Twitter client. ### Installation @@ -21,7 +14,7 @@ For the twitter module, you can download and install it with: hg clone https://python-twitter.googlecode.com/hg/ python-twitter cd python-twitter hg update dev - for i in ../mytwitter/python-twitter-*.patch; do patch p1 < $i; done + for i in ../huginn/python-twitter-*.patch; do patch p1 < $i; done python setup.py build python setup.py install --user @@ -30,8 +23,8 @@ This will install python-twitter in your ~/.local/lib directory, which python 2. ### Configuration -Copy the supplied mytwitter.conf file to ~/.mytwitter.conf, and edit it to suit your preferences. At a minimum, you need to change the [account] section to contain a valid twitter username and password. You can have multiple [account] sections, but they must be uniquely named, and the section name must start with 'account'. +Copy the supplied huginn.conf file to ~/.huginn.conf, and edit it to suit your preferences. At a minimum, you need to change the [account] section to contain a valid twitter username and password. You can have multiple [account] sections, but they must be uniquely named, and the section name must start with 'account'. ### Usage -Just run ./mytwitter.py, and start playing around. Right now, it is best to run this file in-place; it expects twitterwidgets.py and default.glade to be in the same directory. +Just run ./huginn.py, and start playing around. Right now, it is best to run this file in-place; it expects twitterwidgets.py and default.glade to be in the same directory. diff --git a/TODO b/TODO index fcc4710..e333855 100644 --- a/TODO +++ b/TODO @@ -22,4 +22,4 @@ bugs: considerable tweaks to python-twitter) * "ValueError: list.remove(x): x not in list" when trying to close a tab (error recurred after adding conversation support). Tabs can be reordered, then closed, as a workaround. * Links must be right-clicked on to activate - can't left-click on the link directly. This seems to be a pygtk issue -* Bugs: File "/home/patrick/code/mytwitter/apithreads.py", line 234: UnboundLocalError: local variable 'user' referenced before assignment +* Bugs: File "/home/user/code/huginn/apithreads.py", line 234: UnboundLocalError: local variable 'user' referenced before assignment diff --git a/default.glade b/default.glade index e2d16a5..e70a8ef 100644 --- a/default.glade +++ b/default.glade @@ -5,7 +5,7 @@ True - MyTwitter + Huginn GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False diff --git a/mytwitter.conf b/huginn.conf similarity index 100% rename from mytwitter.conf rename to huginn.conf diff --git a/mytwitter.py b/huginn.py similarity index 98% rename from mytwitter.py rename to huginn.py index bac57cf..fd292ca 100755 --- a/mytwitter.py +++ b/huginn.py @@ -10,7 +10,7 @@ from threading import enumerate import apithreads -class MyTwitter(): +class Huginn(): """ Display Tweets, post to twitter """ @@ -34,7 +34,7 @@ class MyTwitter(): config.set('global', 'refreshtime', '5') new_data = True if not config.has_option('global', 'dbfile'): - config.set('global', 'dbfile', '~/.mytwitter.db') + config.set('global', 'dbfile', '~/.huginn.db') new_data = True # Write out new config data, if needed @@ -548,18 +548,18 @@ class MyTwitter(): -### end class MyTwitter +### end class Huginn # main debug = False parser = optparse.OptionParser() -parser.add_option('-c' ,'--config', dest="filename", default="~/.mytwitter.conf", help="read configuration from FILENAME instead of the default ~/.mytwitter.conf") +parser.add_option('-c' ,'--config', dest="filename", default="~/.huginn.conf", help="read configuration from FILENAME instead of the default ~/.huginn.conf") parser.add_option('-n' ,'--no-resize', dest="resize", action='store_false', default=True, help="use the default window size instead of the size from the last session") (options, args) = parser.parse_args() -my_twitter = MyTwitter(options.filename, options.resize) +my_twitter = Huginn(options.filename, options.resize) gtk.gdk.threads_init() gtk.gdk.threads_enter()