Skip to content
Snippets Groups Projects
Commit 7a933c03 authored by Seblu's avatar Seblu
Browse files

Command tags now use generic tag display func

parent b08d51b6
No related branches found
No related tags found
No related merge requests found
......@@ -33,14 +33,7 @@ class Command_tags(TqlCommand):
# ask server
objs = self.rpccall("tags", tql, _direct=True, _status=False)
# display answer
for o in objs:
tid = self.tdr("id", o.pop("id"))
tags = " ".join([ "%s%s:%s%s"%(self.tdtc(t),
t,
self.tdc(t),
self.tdr(t, v))
for (t,v) in o.items() ])
self.printer.out("%sid=%s%s %s%s"%(self.tdtc("id"), self.tdc("id"), tid, tags, color["reset"]))
self.print_objects(objs)
class Command_addtag(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