[packagekit] Enums in Python
James Bowes
jbowes at dangerouslyinc.com
Tue Nov 6 12:40:48 PST 2007
On Nov 6, 2007 3:05 PM, Tom Parker <palfrey at tevp.net> wrote:
> I've run into a use case (listing what actions the apt backend is
> missing) where I'd quite like to have access to the enums from
> libpackagekit, but in python. To solve this, I've written a chunk of
> code that builds a PackageKitEnum class in python with static members
> listing the messages in each enum type, and as a side effect also
> generates all of the big long manual lists that were previously listed
> in backend.py automagically as well.
>
> Thoughts? Can I commit it?
Cool stuff, Tom. You get bonus points for setting up the makefile deps.
-James
More information about the PackageKit
mailing list