[packagekit] Enums in Python
Tom Parker
palfrey at tevp.net
Tue Nov 6 12:57:32 PST 2007
On 06/11/2007, Richard Hughes <hughsient at gmail.com> wrote:
> NameError: global name 'FILTER_NON_INSTALLED' is not defined
And this would be because of "do we call it not installed or
available" problem. Multiple ways to fix it:
1) Replace all python usages of FILTER_NON_INSTALLED with FILTER_AVAILABLE
2) Change pk-enum.c to replace PK_FILTER_ENUM_AVAILABLE with
PK_FILTER_ENUM_NON_INSTALLED (and all the relevant changes elsewhere
in the codebase)
3) Special case this one, and provide FILTER_NON_INSTALLED as an alias
to FILTER_AVAILABLE.
I'm not entirely happy with 3, but not sure which one of 1 or 2 we
should go with.
Tom
More information about the PackageKit
mailing list