Commit 7a933c03 authored by Seblu's avatar Seblu
Browse files

Command tags now use generic tag display func

parent b08d51b6
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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):