File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/werkzeug/debug/__init__.pyc
Back
� �[�Rc @ s� d Z d d l Z d d l Z d d l m Z m Z m Z m Z d d l m Z m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d e f d � � YZ d S( s� werkzeug.debug ~~~~~~~~~~~~~~ WSGI application traceback debugger. :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. i����N( t joint dirnamet basenamet isfile( t BaseRequestt BaseResponse( t get_current_tracebackt render_console_html( t Console( t gen_salt( t debug_reprt _ConsoleFramec B s e Z d Z d � Z RS( s] Helper class so that we can reuse the frame console code for the standalone console. c C s t | � | _ d | _ d S( Ni ( R t consolet id( t selft namespace( ( sF /opt/imh-python/lib/python2.7/site-packages/werkzeug/debug/__init__.pyt __init__ s ( t __name__t __module__t __doc__R ( ( ( sF /opt/imh-python/lib/python2.7/site-packages/werkzeug/debug/__init__.pyR s t DebuggedApplicationc B sn e Z d Z d Z e d d d e d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� Enables debugging support for a given application:: from werkzeug.debug import DebuggedApplication from myapp import app app = DebuggedApplication(app, evalex=True) The `evalex` keyword argument allows evaluating expressions in a traceback's frame context. .. versionadded:: 0.9 The `lodgeit_url` parameter was deprecated. :param app: the WSGI application to run debugged. :param evalex: enable exception evaluation feature (interactive debugging). This requires a non-forking server. :param request_key: The key that points to the request object in ths environment. This parameter is ignored in current versions. :param console_path: the URL for a general purpose console. :param console_init_func: the function that is executed before starting the general purpose console. The return value is used as initial namespace. :param show_hidden_frames: by default hidden traceback frames are skipped. You can show them by setting this parameter to `True`. t werkzeugs werkzeug.requests /consolec C s� | d k r/ d d l m } | t d � � n | s>