On Sep 5, 1:19 pm, Wes James <[email protected]> wrote:
> On Fri, Sep 4, 2009 at 8:21 PM, mdipierro<[email protected]> wrote:
>
> > Sorry Graham. You are right I got confused. Had a long day.
> > I will add you patch to trunk but, as you and Fran, say we should make
> > this optional.
> > What do you suggest as a way to make this optional?
>
> > Massimo
>
> command-line option
A command line option makes no sense in the context of either the URL
patch or file_wrapper patch. This is because both are really only
relevant within context of Apache/mod_wsgi at this point for which
there is no command line execution of any web2py provides script.
What are the normal options for specifying global options in web2py.
Does the options.py file still get used when hosted under Apache/
mod_wsgi.
Alternative is you use WSGI environment variables, which can be set in
Apache/mod_wsgi using SetEnv directive. Thus:
SetEnv web2py.relocatable_application 1
SetEnv web2py.file_wrapper_extension 1
These I think would equate to check in respective routines something
like:
if request and request.env.web2py_relocation_application \
and int(request.env.web2py_relocation_application):
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---