Ñò
ªè·Jc @ s d d k Z d d k l Z d d k l Z l Z d d k l Z l Z d g Z d e
f d „ ƒ YZ d e
f d „ ƒ YZ d S( iÿÿÿÿN( t
EngineManager( t RequestLocalDescriptort disable_runtime_checks( t StackedObjectProxyt Registryt
HostFrameworkt RequestLocalc B s e Z d „ Z RS( c C s | | _ h | _ d S( N( t environt resources( t selfR ( ( s0 /usr/lib/python2.6/site-packages/tw/mods/base.pyt __init__
s ( t __name__t
__module__R
( ( ( s0 /usr/lib/python2.6/site-packages/tw/mods/base.pyR s c B s˜ e Z d Z e d d ƒ Z e Z e d d ƒ Z d d d „ e
d d d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z d „ Z d
„ Z d „ Z RS( sJ
This class is the interface between ToscaWidgets and the framework or
web application that's using them.
The an instance of this class should be passed as second argument to
:class:`tw.core.middleware.ToscaWidgetsMiddleware` which will call its
:meth:`start_request` method at the beginning of every
request and :meth:`end_request` when the request is over so I have a chance
to register our per-request context.
A request-local proxy to a configured instance is placed at the beginning
of the request at :attr:`tw.framework`
**Constructor's arguments:**
engines
An instance of :class:`tw.core.view.EngineManager`.
default_view
The name of the template engine used by default in the container app's
templates. It's used to determine what conversion is neccesary when
displaying root widgets on a template.
translator
Function used to translate strings.
enable_runtime_checks
Enables runtime checks for possible programming errors regarding
modifying widget attributes once a widget has been initialized.
Disabling this option can significantly reduce Widget initializatio
time.
.. note::
This operation modifies the Widget class and will affect any
application using ToscaWidgets in the same process.
aggregation_config
This option can either be None, or must be a dictionary. The dictionary can
have two keys, **js** and **css**. The value of each key is a list of dicts
with the following keys:
- **modname** the module to create the resource link from.
- **filename** the filename relative to the **modname** of the aggregated resources.
- **map** the mapping-file for the aggregated resources. If not given, defaults to
``