def console(self):
     static_path = self.request.static_url(STATIC_PATH)
     toolbar_root_path = self.request.route_url(ROOT_ROUTE_NAME)
     exc_history = self.exc_history
     vars = {
         'evalex': exc_history.eval_exc and 'true' or 'false',
         'console': 'true',
         'title': 'Console',
         'traceback_id': self.tb or -1,
         'root_path': toolbar_root_path,
         'static_path': static_path,
         'token': exc_history.token,
     }
     if 0 not in exc_history.frames:
         exc_history.frames[0] = _ConsoleFrame({})
     return vars
Beispiel #2
0
 def console(self):
     static_path = self.request.static_url(STATIC_PATH)
     toolbar_root_path = self.request.route_url(ROOT_ROUTE_NAME)
     exc_history = self.exc_history
     vars = {
         'evalex':           exc_history.eval_exc and 'true' or 'false',
         'console':          'true',
         'title':            'Console',
         'traceback_id':     self.tb or -1,
         'root_path':        toolbar_root_path,
         'static_path':      static_path,
         'token':            self.token,
         }
     if 0 not in exc_history.frames:
         exc_history.frames[0] = _ConsoleFrame({})
     return vars
Beispiel #3
0
 def console(self):
     static_path = self.request.static_path(STATIC_PATH)
     toolbar_root_path = self.request.route_path(ROOT_ROUTE_NAME)
     exc_history = self.exc_history
     vars = {
         "evalex": exc_history.eval_exc and "true" or "false",
         "console": "true",
         "title": "Console",
         "traceback_id": self.tb or -1,
         "root_path": toolbar_root_path,
         "static_path": static_path,
         "token": exc_history.token,
     }
     if 0 not in exc_history.frames:
         exc_history.frames[0] = _ConsoleFrame({})
     return vars