From 71e92cfb683825b87616be49e239102141bdad05 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Fri, 18 Feb 2011 21:24:23 +0100 Subject: [PATCH] command rights display using tagdisplay color system --- cccli/command/right.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cccli/command/right.py b/cccli/command/right.py index 4133662..4b72146 100644 --- a/cccli/command/right.py +++ b/cccli/command/right.py @@ -35,10 +35,10 @@ class Command_rights(TqlCommand): al = self.rpccall("rights", tql, _direct=True, _status=False) # display answer for (a, rl) in al.items(): - self.printer.out("%srights of %s%s"%(color["lblue"], a, color["reset"])) + self.printer.out("rights of %s%s%s"%(self.tdc("a"), a, color["reset"])) for i,r in enumerate(rl): - tags = " ".join([ "%s%s:%s%s"%(color["green"], t, color["reset"], v) for (t,v) in r.items() ]) - self.printer.out("[%s] %s"%(i,tags)) + 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"])) class Command_addright(TqlCommand): -- GitLab