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. On Friday, April 3, 2015 at 11:10:57 PM UTC+2, 黄祥 wrote: > > thank you simone for explanation, another question is about > *earlier 0.py* > settings.migrate = True > settings.actions_disabled = ['profile', 'register'] > > *current appconfig.ini* > migrate = 1 > > is the migrate change from True into 1, i know 1 is True and 0 is False? > is appconfig.ini is support list like the Storage do? > > 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.