Example #1
0
 def _cached_conn_text(self, content, hdrItems, viewmode, pretty_type):
     txt = common.format_keyvals(
             [(h+":", v) for (h, v) in hdrItems],
             key = "header",
             val = "text"
         )
     if content:
         msg, body = contentview.get_content_view(viewmode, pretty_type, hdrItems, content)
         title = urwid.AttrWrap(urwid.Columns([
             urwid.Text(
                 [
                     ("heading", msg),
                 ]
             ),
             urwid.Text(
                 [
                     " ",
                     ('heading', "["),
                     ('heading_key', "m"),
                     ('heading', (":%s]"%contentview.CONTENT_VIEWS[self.master.state.view_body_mode])),
                 ],
                 align="right"
             ),
         ]), "heading")
         txt.append(title)
         txt.extend(body)
     return urwid.ListBox(txt)
Example #2
0
 def _cached_content_view(self, viewmode, hdrItems, content, limit):
     return contentview.get_content_view(viewmode, hdrItems, content, limit, self.master.add_event)
Example #3
0
 def _cached_content_view(self, viewmode, hdrItems, content, limit):
     return contentview.get_content_view(viewmode, hdrItems, content, limit, self.master.add_event)
Example #4
0
 def _cached_content_view(self, viewmode, hdrItems, content, limit):
     return contentview.get_content_view(viewmode, hdrItems, content, limit)