From e50d8412a4da673d14bf1d0a3d22f01013aac66c Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Thu, 11 Aug 2011 14:10:42 +0200 Subject: [PATCH] Use resource kind as OpQuery*'s description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This gives a hint as to what's queried. βQUERY(instance)β or βQUERY(node)β are way better than just βQUERYβ. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: RenΓ© Nussbaumer <rn@google.com> --- lib/opcodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/opcodes.py b/lib/opcodes.py index 7d9f4b384..cc2ac0723 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -750,6 +750,7 @@ class OpQuery(OpCode): @ivar filter: Query filter """ + OP_DSC_FIELD = "what" OP_PARAMS = [ _PQueryWhat, ("fields", ht.NoDefault, ht.TListOf(ht.TNonEmptyString), @@ -766,6 +767,7 @@ class OpQueryFields(OpCode): @ivar fields: List of fields to retrieve """ + OP_DSC_FIELD = "what" OP_PARAMS = [ _PQueryWhat, ("fields", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)), -- GitLab