Re: [web2py] AppConfig and Storage
where we can read more about this new option.? You could publish related link? El martes, 7 de abril de 2015, 11:19:17 (UTC-4:30), Niphlod escribió: Sorry for late intromission. Is all of this documented in the book? If I got right, this can change the programer’s expectation about when the system parameters will be refreshed. that's why the scaffolding has reload=True, with a comment to remove that parameter once in production. Until now, it was refreshed on each request. Now, If I understood, it just occurs when the server is reloaded. Let's don't fall in shortcircuits: until now, there was no such thing as appconfig. -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] AppConfig and Storage
On 4 Apr 2015, at 15:01, Niphlod niph...@gmail.com wrote: if you look at the source code, you'll see that it's just an ini parser by default. All that it does is speedup the settings part without users knowing anything about python (think when you finish an app and you deploy it on a system you may not have access to, or if you ship an app to your users) migrate = 1 or True in this case doesn't make a difference, since it's not fetched. However, the migrate implementation takes a truey/falsey value and doesn't do strict type checking, so casting it to int would make it work fine. In case you'd like to pass your own cast function you can. Beware: since it's made for speed, once you take out the reload on the initialization, values will be stored indefinitely as they are fetched the first time. Sorry for late intromission. Is all of this documented in the book? If I got right, this can change the programer’s expectation about when the system parameters will be refreshed. Until now, it was refreshed on each request. Now, If I understood, it just occurs when the server is reloaded. Am I right? — Vinicius. -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] AppConfig and Storage
not yet, already checked in : http://web2py.com/books/default/search/29?search=appconfig.ini if i'm not wrong in another threads, massimo told that the documentation will be updated on summer, hope this thing is included too. 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] AppConfig and Storage
Sorry for late intromission. Is all of this documented in the book? If I got right, this can change the programer’s expectation about when the system parameters will be refreshed. that's why the scaffolding has reload=True, with a comment to remove that parameter once in production. Until now, it was refreshed on each request. Now, If I understood, it just occurs when the server is reloaded. Let's don't fall in shortcircuits: until now, there was no such thing as appconfig. -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] AppConfig and Storage
hi, i notice that the new 2.10.3 have an AppConfig what is the difference with Storage? At the earlier i usually use Storage e.g. from gluon.storage import Storage settings = Storage() settings.email_server = 'logging' or 'smtp.gmail.com:587' yet right now in the new version it change into AppConfig e.g. [smtp] server = smtp.gmail.com:587 thanks 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.