Ticket #2439 (closed defect: fixed)
Support ToscaWidgets resource variants and other TW config options
|Reported by:||chrisz||Owned by:|
TurboGears should configure this properly in a quickstarted app.
On the TurboGears mailing list, Diez suggested adding the following to config.middleware:
import tw.api tw.api.resources.registry.ACTIVE_VARIANT = app_conf.get( "tw.resource_variant", tw.api.resources.registry.DEFAULT_VARIANT)
Then, the templates for development.ini and deployment.ini should set tw.resource_variant to 'debug' and 'minified'/'packed' respectively.
Diez also suggested passing app_conf (self) to tw.api.make_middleware (tw_middleware) in the AppConfig.add_tosca_middleware() method of the tg.configuration module. Then ToscaWidgets could care for the configuration itself, and other config-options could be set as well, e.g. require_once, serve_resources and so on.
- Status changed from closed to reopened
- Priority changed from high to normal
- Resolution fixed deleted