changeset 3858:6e785662dd7d

cli (blog/get): verbose level of 2 now shows `extra` field
author Goffi <goffi@goffi.org>
date Thu, 14 Jul 2022 12:55:30 +0200
parents 7d11e42b150e
children 3ef988734869
files sat_frontends/jp/cmd_blog.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_blog.py	Thu Jul 14 12:55:30 2022 +0200
+++ b/sat_frontends/jp/cmd_blog.py	Thu Jul 14 12:55:30 2022 +0200
@@ -81,6 +81,7 @@
     "content_xhtml",
     "title",
     "title_xhtml",
+    "extra"
 )
 OUTPUT_OPT_NO_HEADER = "no-header"
 
@@ -366,6 +367,8 @@
                 value = k_cb[k](item, keys) if k in k_cb else item[k]
                 if isinstance(value, bool):
                     value = str(value).lower()
+                elif isinstance(value, dict):
+                    value = repr(value)
                 self.disp(header + (value or ""))
                 # we want a separation line after each item but the last one
             if idx < len(items) - 1: