From 7a933c03ba4f1cf086e0a0c40fc879320d4bae12 Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Fri, 18 Feb 2011 20:08:48 +0100
Subject: [PATCH] Command tags now use generic tag display func

---
 cccli/command/tag.py | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/cccli/command/tag.py b/cccli/command/tag.py
index f13981b..2ae7284 100644
--- a/cccli/command/tag.py
+++ b/cccli/command/tag.py
@@ -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):
-- 
GitLab