Module ImportFrom alias Import alias Import alias Import alias identifier ImportFrom alias alias ImportFrom alias alias ImportFrom alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Lambda arguments args NameParam NameParam defaults NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore NameLoad Assign NameStore Str Assign NameStore BinOpMult Num Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict Assign NameStore Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Assign NameStore Str FunctionDef arguments args NameParam defaults kwarg body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore TupleLoad Str Str Str Str Str Str For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad For NameStore TupleLoad Str Str body Expr Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body ImportFrom alias Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str ListLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str ListLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str ListLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Assign NameStore BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr CompareIn Str NameLoad UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameStore AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd NameLoad CompareNotEq SubscriptLoad NameLoad Index Num NameLoad body Return Call AttributeLoad NameLoad attr keyword Str Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore BoolOpOr NameLoad Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str BinOpAdd Call AttributeLoad NameLoad attr Str ListLoad ListLoad TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str BinOpAdd Call AttributeLoad NameLoad attr Str ListLoad ListLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad kwarg body Assign NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad kwarg body Return Call NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list
N/A __future__ absolute_import N/A types N/A warnings N/A webob wo pkg_resources iter_entry_points DistributionNotFound paste.deploy.converters asbool asint N/A core N/A logging N/A six N/A log N/A N/A logging getLogger __name__ Config N/A object N/A N/A 
    ToscaWidgets Configuration Set

    `translator`
        The translator function to use. (default: no-op)

    `default_engine`
        The main template engine in use by the application. Widgets with no
        parent will display correctly inside this template engine. Other
        engines may require passing displays_on to :meth:`Widget.display`.
        (default:string)

    `inject_resoures`
        Whether to inject resource links in output pages. (default: True)

    `inject_resources_location`
        A location where the resources should be injected. (default: head)

    `serve_resources`
        Whether to serve static resources. (default: True)

    `res_prefix`
        The prefix under which static resources are served. This must start
        and end with a slash. (default: /resources/)

    `res_max_age`
        The maximum time a cache can hold the resource. This is used to
        generate a Cache-control header. (default: 3600)

    `serve_controllers`
        Whether to serve controller methods on widgets. (default: True)

    `controller_prefix`
        The prefix under which controllers are served. This must start
        and end with a slash. (default: /controllers/)

    `bufsize`
        Buffer size used by static resource server. (default: 4096)

    `params_as_vars`
        Whether to present parameters as variables in widget templates. This
        is the behaviour from ToscaWidgets 0.9. (default: False)

    `debug`
        Whether the app is running in development or production mode.
        (default: True)

    `validator_msgs`
        A dictionary that maps validation message names to messages. This lets
        you override validation messages on a global basis. (default: {})

    `encoding`
        The encoding to decode when performing validation (default: utf-8)

    `auto_reload_templates`
        Whether to automatically reload changed templates. Set this to False in
        production for efficiency. If this is None, it takes the same value as
        debug. (default: None)

    `preferred_rendering_engines`
        List of rendering engines in order of preference.
        (default: ['mako','genshi','jinja','kajiki'])

    `strict_engine_selection`
        If set to true, TW2 will only select rendering engines from within your
        preferred_rendering_engines, otherwise, it will try the default list if
        it does not find a template within your preferred list. (default: True)

    `rendering_engine_lookup`
        A dictionary of file extensions you expect to use for each type of
        template engine.
        (default: {
            'mako':['mak', 'mako'],
            'genshi':['genshi', 'html'],
            'jinja':['jinja', 'html'],
            'kajiki':['kajiki', 'html'],
        })

    `script_name`
        A name to prepend to the url for all resource links (different from
        res_prefix, as it may be shared across and entire wsgi app.
        (default: '')
     N/A translator N/A N/A N/A self s N/A s N/A default_engine string N/A inject_resources_location head N/A inject_resources True N/A serve_resources True N/A res_prefix /resources/ N/A res_max_age 3600 N/A serve_controllers True N/A controller_prefix /controllers/ N/A bufsize N/A 4 1024 N/A params_as_vars False N/A debug True N/A validator_msgs N/A N/A encoding utf-8 N/A auto_reload_templates None N/A preferred_rendering_engines N/A mako genshi jinja kajiki N/A strict_engine_selection True N/A rendering_extension_lookup N/A mako genshi genshi_abs jinja kajiki chameleon N/A mak mako N/A genshi html N/A genshi html N/A jinja html N/A kajiki html N/A pt N/A script_name __init__ N/A N/A self N/A kw N/A N/A N/A k v N/A N/A kw items N/A N/A N/A setattr self k v N/A boolean_props N/A inject_resources serve_resources serve_controllers params_as_vars strict_engine_selection debug N/A prop boolean_props N/A N/A N/A setattr self prop N/A asbool N/A getattr self prop N/A prop N/A res_max_age bufsize N/A N/A N/A setattr self prop N/A asint N/A getattr self prop N/A N/A N/A self auto_reload_templates None N/A N/A N/A self auto_reload_templates N/A self debug N/A N/A TwMiddleware N/A object N/A N/A ToscaWidgets middleware

    This performs three tasks:
     * Clear request-local storage before and after each request. At the start
       of a request, a reference to the middleware instance is stored in
       request-local storage.
     * Proxy resource requests to ResourcesApp
     * Inject resources
     __init__ N/A N/A self app controllers N/A None config N/A N/A resources N/A N/A self _resources_module resources N/A N/A self app app N/A N/A self config N/A Config config N/A N/A self resources N/A N/A resources ResourcesApp N/A self config N/A N/A self controllers N/A controllers N/A ControllersApp N/A rl N/A N/A core request_local N/A N/A widget path N/A N/A rl get queued_controllers N/A N/A N/A N/A N/A N/A self controllers register widget path N/A N/A rl N/A queued_controllers N/A N/A N/A modname filename whole_dir N/A N/A rl get queued_resources N/A N/A N/A N/A N/A N/A self resources register modname filename whole_dir N/A N/A rl N/A queued_resources N/A N/A N/A rl N/A middleware self N/A __call__ N/A N/A self environ start_response N/A N/A N/A rl N/A N/A core request_local N/A N/A N/A rl clear N/A N/A rl N/A middleware self N/A req N/A N/A wo Request environ N/A path N/A req path_info N/A N/A N/A N/A self config serve_resources N/A N/A path startswith N/A N/A self config res_prefix N/A N/A N/A N/A self resources environ start_response N/A N/A N/A N/A N/A self config serve_controllers N/A N/A path startswith N/A N/A self config controller_prefix N/A N/A resp N/A N/A self controllers req N/A N/A N/A self app N/A N/A resp N/A N/A req get_response N/A self app catch_exc_info True N/A N/A resp N/A N/A wo Response status 404 Not Found N/A ct N/A N/A N/A N/A N/A resp headers get Content-Type text/plain lower N/A should_inject N/A N/A N/A self config inject_resources N/A html ct N/A N/A isinstance N/A resp app_iter N/A types GeneratorType N/A should_inject N/A N/A N/A resp charset N/A N/A body N/A N/A N/A N/A N/A self _resources_module inject_resources N/A N/A N/A resp body decode N/A resp charset encode N/A resp charset N/A N/A body N/A N/A N/A self _resources_module inject_resources N/A resp body N/A N/A isinstance body N/A six text_type N/A N/A N/A resp unicode_body body N/A N/A N/A resp body body N/A N/A N/A N/A N/A core request_local clear N/A N/A resp environ start_response N/A N/A ControllersApp N/A object N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self _widgets N/A N/A register N/A N/A self widget path N/A None N/A N/A N/A N/A log info N/A Registered controller %r->%r N/A path widget N/A N/A path None N/A N/A path N/A widget id N/A N/A N/A self _widgets N/A path widget N/A controller_path N/A N/A self target_widget N/A N/A N/A  Return the path against which a given widget is mounted or None if
        it is not registered.
         N/A N/A path widget N/A N/A six iteritems N/A self _widgets N/A N/A N/A target_widget widget N/A N/A path N/A None N/A __call__ N/A N/A self req N/A N/A N/A config rl N/A N/A N/A N/A core request_local N/A middleware config N/A path N/A N/A N/A N/A req path_info split / N/A 1 N/A pre N/A N/A N/A config controller_prefix strip / N/A N/A pre N/A N/A path N/A 0 pre N/A N/A N/A N/A wo Response status 404 Not Found N/A path N/A pre N/A path N/A 1 N/A path N/A 0 N/A widget_name N/A path index N/A N/A N/A widget N/A N/A self _widgets N/A widget_name N/A N/A N/A KeyError N/A N/A resp N/A N/A wo Response status 404 Not Found N/A N/A resp N/A N/A widget request req N/A resp N/A N/A register_resource N/A N/A modname filename whole_dir N/A N/A N/A  API function for registering resources *for serving*.

    This should not be confused with resource registration for *injection*.
    A resource must be registered for serving for it to be also registered for
    injection.

    If the middleware is available, the resource is directly registered with
    the ResourcesApp.

    If the middleware is not available, the resource is stored in the
    request_local dict.  When the middleware is later initialized, those
    waiting registrations are processed.
     N/A rl N/A N/A core request_local N/A mw N/A N/A rl get middleware N/A mw N/A N/A N/A N/A N/A mw resources register modname filename whole_dir N/A N/A N/A rl N/A queued_resources N/A N/A N/A rl get queued_resources N/A N/A N/A modname filename whole_dir N/A N/A N/A log debug N/A No middleware in place.  Queued %r->%r(%r) registration. N/A modname filename whole_dir N/A register_controller N/A N/A widget path N/A N/A N/A  API function for registering widget controllers.

    If the middleware is available, the widget is directly registered with the
    ControllersApp.

    If the middleware is not available, the widget is stored in the
    request_local dict.  When the middleware is later initialized, those
    waiting registrations are processed.
     N/A rl N/A N/A core request_local N/A mw N/A N/A rl get middleware N/A mw N/A N/A N/A N/A N/A mw controllers register widget path N/A N/A N/A rl N/A queued_controllers N/A N/A N/A rl get queued_controllers N/A N/A N/A widget path N/A N/A N/A log debug N/A No middleware in place.  Queued %r->%r registration. N/A path widget N/A make_middleware N/A N/A app config N/A None None kw N/A N/A config N/A N/A N/A config N/A copy N/A N/A N/A config update kw N/A app N/A TwMiddleware app config N/A app N/A make_app N/A N/A config N/A None kw N/A N/A N/A make_middleware app None config config kw N/A