[packagekit] Enums in Python
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6528 bytes
Desc: not available
More information about the PackageKit