Re: [web2py] Re: env

2018-11-19 Thread Manuele Pesenti
Hi Anthony, thanks for your replay. On 17/11/2018 16:01, Anthony wrote: What do you mean by "returns None"? I do not think the function env() can return None, so where are you seeing None? I see the string None in the browser when I try to access the controller. I guess the code exits in th

[web2py] Re: env

2018-11-17 Thread Anthony
Also, if multiple apps need to share code, a better approach might be to put the shared code in modules and import into each app. On Saturday, November 17, 2018 at 10:01:24 AM UTC-5, Anthony wrote: > > On Friday, November 16, 2018 at 11:34:41 AM UTC-5, Manuele wrote: >> >> Hi! >> >> Is there an

[web2py] Re: env

2018-11-17 Thread Anthony
On Friday, November 16, 2018 at 11:34:41 AM UTC-5, Manuele wrote: > > Hi! > > Is there any good reason why thees few code lines that perfectly run on > a python interpreter returns None if called in a controller? > What do you mean by "returns None"? I do not think the function env() can retur

[web2py] Re: env vars in appconfig.ini

2016-07-17 Thread LMK
Thanks. I will open an issue on GitHub. -- 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

[web2py] Re: env vars in appconfig.ini

2016-07-17 Thread Anthony
I don't think appconfig supports environment variables in .ini files, though I think it could be made to if it used SafeConfigParser(os.environ) in place of SafeConfigParser(). Maybe open a Github issue with this suggestion. Anthony On Sunday, July 17, 2016 at 3:35:50 PM UTC-4, LMK wrote: > >