Show More
@@ -50,14 +50,12 b' class baseformatter(object):' | |||||
50 | '''do default text output while assigning data to item''' |
|
50 | '''do default text output while assigning data to item''' | |
51 | fieldkeys = fields.split() |
|
51 | fieldkeys = fields.split() | |
52 | assert len(fieldkeys) == len(fielddata) |
|
52 | assert len(fieldkeys) == len(fielddata) | |
53 |
|
|
53 | self._item.update(zip(fieldkeys, fielddata)) | |
54 | self._item[k] = v |
|
|||
55 | def condwrite(self, cond, fields, deftext, *fielddata, **opts): |
|
54 | def condwrite(self, cond, fields, deftext, *fielddata, **opts): | |
56 | '''do conditional write (primarily for plain formatter)''' |
|
55 | '''do conditional write (primarily for plain formatter)''' | |
57 | fieldkeys = fields.split() |
|
56 | fieldkeys = fields.split() | |
58 | assert len(fieldkeys) == len(fielddata) |
|
57 | assert len(fieldkeys) == len(fielddata) | |
59 |
|
|
58 | self._item.update(zip(fieldkeys, fielddata)) | |
60 | self._item[k] = v |
|
|||
61 | def plain(self, text, **opts): |
|
59 | def plain(self, text, **opts): | |
62 | '''show raw text for non-templated mode''' |
|
60 | '''show raw text for non-templated mode''' | |
63 | pass |
|
61 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now