that's how ini parsers work: they parse the value as strings. you can force a conversion of the type using a cast function passed to the take() function. Get the inspiration from the scaffolding app, it's all there.
On Tuesday, July 14, 2015 at 6:41:29 PM UTC+2, ermolaev...@gmail.com wrote: > > if I init some var in appconfig.ini: > my_var1 = False > > and then use it in code: > if my_var1: -> will use as True > > so I need use in appconfig.ini that code: > my_var1 = > > понедельник, 13 июля 2015 г., 19:35:59 UTC+3 пользователь Niphlod написал: >> >> sorry, what ?!?!?! >> >> On Sunday, July 12, 2015 at 11:21:04 PM UTC+2, ermolaev...@gmail.com >> wrote: >>> >>> in 0.py by using Storage: >>> >>> develop = False >>> develop = 0 >>> develop = '' >>> >>> all is work >>> >>> in appconfig.ini >>> develop = False >>> develop = 0 >>> develop = '' >>> setted as True !!! >>> >>> We need use now it: >>> develop = >>> >>> (( >>> >>> -- 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.