Renamed application in preparation of creating a new repository for it
This commit is contained in:
parent
ae1323a04d
commit
adf929e225
|
@ -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.
|
||||
|
|
2
TODO
2
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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<widget class="GtkWindow" id="window">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">MyTwitter</property>
|
||||
<property name="title" translatable="yes">Huginn</property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
<property name="modal">False</property>
|
||||
|
|
|
@ -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()
|
Reference in New Issue
Block a user