Skip to content
Snippets Groups Projects
Commit 71e92cfb authored by Seblu's avatar Seblu
Browse files

command rights display using tagdisplay color system

parent fadfb156
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment