[Deskbar] Twitter handler, and tricks for web-app modules
- From: "Mikkel Kamstrup Erlandsen" <mikkel kamstrup gmail com>
- To: deskbar-applet-list gnome org
- Subject: [Deskbar] Twitter handler, and tricks for web-app modules
- Date: Fri, 6 Jun 2008 12:40:02 +0200
Hi list, a good while since I have been around here. Sorry for that :-)
I recently did a massvie update of the old Twitter handler. See here:
http://www.grillbar.org/wordpress/?p=276. Actual code here:
http://grillbar.org/files/twitter.py
I would like to submit it for general inclusion in deskbar. There is a few things I would like to change before I do that though.
If you look at the actual code you will find a few things that might be very handy for other web-app based modules:
* Embedded base64 icon loading. I suggest moving a version of my load_base64_icon() to deskbar.core.Utils. This makes it easily possible to ship custom icons embedded directly in your python scripts.
* The Account, AccountDialog, and GnomeURLopener. These are classes that integrates Gnome Keyring with urllib (for username/pass retrieval) as well as doing async http communication (I need to do async POSTs in the Action.activate()). I suggest I put this in a new Python module deskbar.core.Web or something.
Comments, most welcome! Cheers,
Mikkel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]