Loading cccli/command/right.py +3 −3 Original line number Diff line number Diff line Loading @@ -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): Loading Loading
cccli/command/right.py +3 −3 Original line number Diff line number Diff line Loading @@ -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): Loading