Ejemplo n.º 1
0
 def __init__(self, app, evalex=True, console_path='/__console__',
              console_init_func=None, show_hidden_frames=False,
              lodgeit_url='http://paste.pocoo.org/', context_injectors=None):
     if not console_init_func:
         console_init_func = dict
     self.app = app
     self.evalex = evalex
     self.frames = {}
     self.tracebacks = {}
     self.console_path = console_path
     self.console_init_func = console_init_func
     self.show_hidden_frames = show_hidden_frames
     self.lodgeit_url = lodgeit_url
     self.secret = gen_salt(20)
     self.context_injectors = context_injectors or []
Ejemplo n.º 2
0
    def __init__(self, app, evalex=True, console_path='/__console__',
                 console_init_func=None, show_hidden_frames=False,
                 lodgeit_url=None, context_injectors=None):
        if not console_init_func:
            console_init_func = dict
        self.app = app
        self.evalex = evalex
        self.frames = {}
        self.tracebacks = {}
        self.console_path = console_path
        self.console_init_func = console_init_func
        self.show_hidden_frames = show_hidden_frames
        self.secret = gen_salt(20)
        self.context_injectors = context_injectors or []

        if lodgeit_url is not None:
            from warnings import warn
            warn(DeprecationWarning('Backlash now pastes into gists.'))
Ejemplo n.º 3
0
    def __init__(self, app, evalex=True, console_path='/__console__',
                 console_init_func=None, show_hidden_frames=False,
                 lodgeit_url=None, context_injectors=None):
        if not console_init_func:
            console_init_func = dict
        self.app = app
        self.evalex = evalex
        self.frames = {}
        self.tracebacks = {}
        self.console_path = console_path
        self.console_init_func = console_init_func
        self.show_hidden_frames = show_hidden_frames
        self.secret = gen_salt(20)
        self.context_injectors = context_injectors or []

        if lodgeit_url is not None:
            from warnings import warn
            warn(DeprecationWarning('Backlash now pastes into gists.'))