On Wednesday, April 18, 2018 at 9:12:22 PM UTC+7, Anthony wrote: > > Why not: > > myconf = AppConfig(configFile=os.path.join(request.folder, '..', > 'appconfig', 'private', 'app0.json')) > > Making an HTTP request will add some overhead, though it shouldn't matter > as long as you leave the default reload=False -- that way, it will only > load the config data from the source once and keep it cached for subsequent > requests. >
good point, thanks anthony, like i expect before about http request. from your example it's base on json, is it same or different with *.ini file like the web2py scaffolding welcome app, i mean in terms of speed or performance ? reason why plan to use json, because want to store configuration in database and make api that produce json file to another web2py app any advise? thx and best regards, stifan -- 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.

