Loading cccli/commands/list.py +0 −9 Original line number Diff line number Diff line Loading @@ -123,7 +123,6 @@ class Command_list(TqlCommand): if not self.options.nocount: self.printer.out("Objects count: %s" % len(objs["objects"])) def list_table(self, objs): '''Listing table style''' term_height, term_width = self.printer.get_term_size() Loading @@ -147,8 +146,6 @@ class Command_list(TqlCommand): # build initial print order order = [ t for t in objs.get("order", []) if t in tags ] order.extend(sorted(set(tags.keys()) - set(order))) # remove id of order order = order[1:] # print tag table by title group while order: tag_index = 0 Loading @@ -157,9 +154,6 @@ class Command_list(TqlCommand): # print index title self.printer.out("index ", nl="") line_pos = indexw # print id title self.printer.out(self.tdtc("id") + "id".ljust(tags["id"]), nl=" ") line_pos += size_id # print tags title section in order for t in order: # if the tag don't fit in space left, stop the title loop Loading @@ -175,9 +169,6 @@ class Command_list(TqlCommand): if self.options.index: self.printer.out(("%d "%i).ljust(indexw), nl="") line_pos += indexw # print id value self.printer.out(self.tdc("id") + self.tdr("id", o.get("id", u"")).ljust(tags["id"]), nl=" ") line_pos += size_id # print tag value for t in order[:tag_index]: self.printer.out(self.tdc(t), nl="") Loading Loading
cccli/commands/list.py +0 −9 Original line number Diff line number Diff line Loading @@ -123,7 +123,6 @@ class Command_list(TqlCommand): if not self.options.nocount: self.printer.out("Objects count: %s" % len(objs["objects"])) def list_table(self, objs): '''Listing table style''' term_height, term_width = self.printer.get_term_size() Loading @@ -147,8 +146,6 @@ class Command_list(TqlCommand): # build initial print order order = [ t for t in objs.get("order", []) if t in tags ] order.extend(sorted(set(tags.keys()) - set(order))) # remove id of order order = order[1:] # print tag table by title group while order: tag_index = 0 Loading @@ -157,9 +154,6 @@ class Command_list(TqlCommand): # print index title self.printer.out("index ", nl="") line_pos = indexw # print id title self.printer.out(self.tdtc("id") + "id".ljust(tags["id"]), nl=" ") line_pos += size_id # print tags title section in order for t in order: # if the tag don't fit in space left, stop the title loop Loading @@ -175,9 +169,6 @@ class Command_list(TqlCommand): if self.options.index: self.printer.out(("%d "%i).ljust(indexw), nl="") line_pos += indexw # print id value self.printer.out(self.tdc("id") + self.tdr("id", o.get("id", u"")).ljust(tags["id"]), nl=" ") line_pos += size_id # print tag value for t in order[:tag_index]: self.printer.out(self.tdc(t), nl="") Loading