Example #1
0
 def display_console(self, request):
     """Display a standalone shell."""
     if 0 not in self.frames:
         if self.console_init_func is None:
             ns = {}
         else:
             ns = dict(self.console_init_func())
         ns.setdefault('app', self.app)
         self.frames[0] = _ConsoleFrame(ns)
     is_trusted = bool(self.check_pin_trust(request.environ))
     return Response(render_console_html(secret=self.secret,
                                         evalex_trusted=is_trusted),
                     mimetype='text/html')
Example #2
0
 def display_console(self, request):
     """Display a standalone shell."""
     if 0 not in self.frames:
         if self.console_init_func is None:
             ns = {}
         else:
             ns = dict(self.console_init_func())
         ns.setdefault('app', self.app)
         self.frames[0] = _ConsoleFrame(ns)
     is_trusted = bool(self.check_pin_trust(request.environ))
     return Response(render_console_html(secret=self.secret,
                                         evalex_trusted=is_trusted),
                     mimetype='text/html')
Example #3
0
 def display_console(self, request):
     """Display a standalone shell."""
     if 0 not in self.frames:
         self.frames[0] = _ConsoleFrame(self.console_init_func())
     return Response(render_console_html(secret=self.secret),
                     mimetype='text/html')
Example #4
0
 def display_console(self, request):
     """Display a standalone shell."""
     if 0 not in self.frames:
         self.frames[0] = _ConsoleFrame(self.console_init_func())
     return Response(render_console_html(), mimetype='text/html')