Re: [Deskbar] Twitter handler, and tricks for web-app modules



Mikkel Kamstrup Erlandsen schrieb:
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.

Are you still planing to include this into final 2.24? Keep in mind that on August 18th UI freeze begins.

--
Greetings,
Sebastian Pölsterl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]