Am 04.01.2010 20:56, schrieb Diez B. Roggisch:
> Christoph Zwerschke schrieb:
> There is no config-file-way for now, partially because TW lacks an
> option in the make_middleware-call, partially because TG2 doesn't
> propagate configuration settings in the AppConfig-class.
>
> So IMHO the easiest way is to set this value inside config.middleware
> like this:
>
> import tw.api
>
> tw.api.resources.registry.ACTIVE_VARIANT =
> app_conf.get("tw.resource_variant",
> tw.api.resource.registry.DEFAULT_VARIANT)
Thanks Diez, that works. I wonder whether we should add this to the
default quickstart template, together with appropriate settings of
tw.resource_variant in development.ini and depolyment.ini?
-- Christoph
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.