On Tuesday 05 January 2010 13:36:38 Christoph Zwerschke wrote:
> 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?Most certainly yes. I also would like to see that AppConf actually passes down app_conf to the tw.api.make_middleware-call. Thus other config-options could be set, e.g. require_once, serve_resources and so on. Diez -- 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.

