On Fri, Mar 6, 2009 at 4:22 AM, LawrenceAfloat <
lawrenc...@gmail.com> wrote:
>
> I did some more digging and found that the TG2 startup code does not
> pass any external parameters on to toscawidgets middleware, it passes
> a fixed set of parameters into toscawidgets.makemiddleware.
>
> With a few judiscious edits I have made it pass in anything with
> toscawidgets.middleware and toscawidgets.framework from the ini file
> (base_config) and so passed resources_expire in to the middleware for
just a little clarification they are two different places, which one
are you using? I really think this is something that should be in
app_cfg.py as it has nothing to do with deployment, if you submit a
patch I could give you a better review. (see below) but in general you
should have a function in configuration.py with default values and it
should read from app_cfg (which of course needs a patch to quickstart)
> use in
tw.core.resources.py which allready looked for a cache expiry
> value. This way all the javascript files get a cache time in them. I
> have done this as there is a large amount of javascript included for
> the tgext.admin.AdminController (Catwalk,Rest) that makes the admin
> interface very slow in development. (I am running it using paster
> serve).
>
> But on the whole very impressed with TG2 over TG1. 2 gold stars.
>
Awesome, me too ;)
it indeed seems interesting, and as Paul said please provide a patch
in trac if you haven't done so please read
http://www.turbogears.org/2.0/docs/main/Contributing.html