[packagekit] Enums in Python
Tom Parker
palfrey at tevp.net
Tue Nov 6 11:05:26 PST 2007
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?
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-enums-builder-for-python.patch
Type: text/x-patch
Size: 6528 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071106/a645a575/attachment-0004.bin>
More information about the PackageKit
mailing list