On Mon, Feb 28, 2011 at 1:30 PM, Michael Hanselmann <[email protected]> wrote:
> This patch finally enables the use of complex filters through opcodes
> and LUXI.
> ---
>  lib/cmdlib.py |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/lib/cmdlib.py b/lib/cmdlib.py
> index 6d1fbc4..ef9f1c9 100644
> --- a/lib/cmdlib.py
> +++ b/lib/cmdlib.py
> @@ -457,11 +457,12 @@ class _QueryBase:
>     """Initializes this class.
>
>     """
> -    self.names = qlang.ReadSimpleFilter("name", filter_)
>     self.use_locking = use_locking
>
> -    self.query = query.Query(self.FIELDS, fields)
> +    self.query = query.Query(self.FIELDS, fields, filter_=filter_,
> +                             namefield="name")
>     self.requested_data = self.query.RequestedData()
> +    self.names = self.query.RequestedNames()
>
>     self.do_locking = None
>     self.wanted = None
> --
> 1.7.3.5

LGTM

>
>

Reply via email to