From ae6ac48eb601441a1b5a1dc07d5ef635d2c19763 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Thu, 24 Feb 2011 16:28:28 +0100 Subject: [PATCH] New rights display. Fix too many filter. Disable TQL indexing --- cccli/command/right.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cccli/command/right.py b/cccli/command/right.py index 2c0484a..281ce2d 100644 --- a/cccli/command/right.py +++ b/cccli/command/right.py @@ -19,6 +19,7 @@ class Command_rights(TqlCommand): self.tql_filter += "&a&r=cli" self.remove_option("--direct") self.remove_option("--quiet") + self.remove_option("--index") def __call__(self, argv): # Parse argline @@ -28,14 +29,11 @@ class Command_rights(TqlCommand): tql = "a=%s"%self.cli.settings["login"] else: tql = "".join(self.args) - # update tql if mode - if not self.options.raw: - tql += "&a" # ask server al = self.rpccall("rights", tql, _direct=True, _status=False) # display answer for (a, rl) in al.items(): - self.printer.out("rights of %s%s%s"%(self.tdc("a"), a, color["reset"])) + self.printer.out("%sa:%s%s%s"%(self.tdtc("a"), self.tdc("a"), a, color["reset"])) for i,r in enumerate(rl): tags = " ".join([ "%s%s:%s%s"%(self.tdtc(t), t, self.tdc(t), v) for (t,v) in r.items() ]) self.printer.out("[%s] %s%s"%(i,tags, color["reset"])) -- GitLab