Ejemplo n.º 1
0
 def render(self, block, context, view_name):
     try:
         return super(StuviewRuntime, self).render(block, context, view_name)
     except NoSuchViewError:
         return Fragment(u"<i>No such view: %s on %s</i>"
                         % (view_name, make_safe_for_html(repr(block))))
Ejemplo n.º 2
0
 def as_html(self):
     """Just for our Workbench!"""
     html = json.dumps(self.db_dict, sort_keys=True, indent=4)
     return make_safe_for_html(html)