> That kind of thing is where I put code in my main() function
initialization to let environment variables override settings.

Maybe I can do something like that. The issue is that I'm trying to guard 
against a novice user enabling things they shouldn't.  

Perhaps I can just catch this in main and raise an exception.
On Tuesday, March 25, 2025 at 1:47:58 PM UTC-4 Mike Orr wrote:

> That kind of thing is where I put code in my main() function
> initialization to let environment variables override settings.
> 'APPNAME__debugtoolbar__enable=1' gets converted to
> settings['debugtoolbar.enable]' = '1'. I used double underscores
> because periods aren't allowed in ennvar names, some settings have
> single underscores in their name,
>
> On Tue, Mar 25, 2025 at 9:44 AM Jonathan Vanasco <[email protected]> 
> wrote:
> >
> > Does anyone know where/if it's possible to override ini settings with 
> prequest?
> >
> > Use-case: I want to ensure the debugtoolbar is disabled for prequest, 
> even if the .ini enables it.
> >
> > --
> > You received this message because you are subscribed to the Google 
> Groups "pylons-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected].
> > To view this discussion visit 
> https://groups.google.com/d/msgid/pylons-discuss/a8d0822a-f2a2-4afe-8299-b0609ecb2091n%40googlegroups.com
> .
>
>
>
> -- 
> Mike Orr <[email protected]>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/pylons-discuss/2e43ba97-1aa4-40cf-b0d0-6ae0bf1502d0n%40googlegroups.com.

Reply via email to