Re: settings.py should have way to hide key/values even when debug set True

2011-02-01 Thread Sam Lai
On 1 February 2011 17:26, Alex Gaynor wrote: > How, precisely, would one apply a decorator to an assignment statement? >  Unless there has been some change to Python's grammar I'm not aware of, > decorators can only be used on function and class definitions. You could wrap the value on the rig

Re: settings.py should have way to hide key/values even when debug set True

2011-01-31 Thread Alex Gaynor
On Tue, Feb 1, 2011 at 1:25 AM, Matteius wrote: > I was thinking the decorator could apply to whatever setting is > declared directly following it. If declared, the setting simply > wouldn't show up. However I could add SECRET or PASSWORD to my token > sensitive settings just as well. > > On Ja

Re: settings.py should have way to hide key/values even when debug set True

2011-01-31 Thread Matteius
I was thinking the decorator could apply to whatever setting is declared directly following it. If declared, the setting simply wouldn't show up. However I could add SECRET or PASSWORD to my token sensitive settings just as well. On Jan 31, 7:00 pm, Russell Keith-Magee wrote: > On Tue, Feb 1, 2

Re: settings.py should have way to hide key/values even when debug set True

2011-01-31 Thread Cal Leeming [Simplicity Media Ltd]
Second. On Tue, Feb 1, 2011 at 1:00 AM, Russell Keith-Magee wrote: > On Tue, Feb 1, 2011 at 12:12 AM, Horst Gutmann > wrote: > > On Mon, Jan 31, 2011 at 5:02 PM, Matteius wrote: > >> I think it would be really useful to have a way (possibly a decorator > >> such as @hide_setting) such as to pr

Re: settings.py should have way to hide key/values even when debug set True

2011-01-31 Thread Russell Keith-Magee
On Tue, Feb 1, 2011 at 12:12 AM, Horst Gutmann wrote: > On Mon, Jan 31, 2011 at 5:02 PM, Matteius wrote: >> I think it would be really useful to have a way (possibly a decorator >> such as @hide_setting) such as to protect deployed sites when they >> switch over to debug mode.  To me this would b

Re: settings.py should have way to hide key/values even when debug set True

2011-01-31 Thread Horst Gutmann
On Mon, Jan 31, 2011 at 5:02 PM, Matteius wrote: > I think it would be really useful to have a way (possibly a decorator > such as @hide_setting) such as to protect deployed sites when they > switch over to debug mode.  To me this would be a most useful setting > to have, especially when protectin