OK, no worries. Thanks for clarifying.

One other option that would be entirely outside the application is putting 
something like the following in routes.py:

from gluon.settings import global_settings
global_settings.mysetting = 'some value'

Then you can import and access the global settings from within the 
application.

Anthony

On Saturday, June 18, 2016 at 9:05:01 PM UTC-4, Dominic Mayers wrote:
>
> Your description of what happened is accurate and I realize that I was 
> needlessly on the defensive, as if you were telling me that my question was 
> a bad one. There was no intention to be rude. I was just defending my 
> question.  I realize that you simply tried to help and feel bad about my 
> reply. As I am new with web2py, your help is very much appreciated. I am 
> still looking at the WSGI middleware option.  Thank you for your guidance. 
>
> On Saturday, 18 June 2016 20:16:03 UTC-4, Anthony wrote:
>>
>> On Saturday, June 18, 2016 at 1:35:40 PM UTC-4, Dominic Mayers wrote:
>>>
>>> Had I been happy with "you just have to ensure that the update mechanism 
>>> doesn't allow that file to be overwritten or deleted.", then I would not 
>>> have asked the question.
>>>
>>
>> Hi Dominic,
>>
>> You seem to be new here. For future reference, note that we generally try 
>> to be more respectful with our responses, particularly as everyone who 
>> contributes here does so voluntarily.
>>
>> Anyway, as I noted, it was difficult to know what you would have "been 
>> happy with," as you did not articulate the nature of the update mechanism. 
>> For example, if someone sends you a zipped application folder, you could 
>> simply unzip it over a fixed "wrapper" application (setting the unzip 
>> options to prevent overwriting). Furthermore, I only offered that option as 
>> a possibly simpler alternative depending on your use case, already having 
>> explained the more robust WSGI middleware option.
>>
>> Anthony
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to