[packagekit] Enums in Python
Tim Lauridsen
tim.lauridsen at googlemail.com
Wed Nov 7 00:11:27 PST 2007
Tom Parker 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?
>
> Tom
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
Very nice work
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071107/dbfad010/attachment-0003.htm>
More information about the PackageKit
mailing list