In the online verson of the book it says:

a_config_value = myconf.take('example_section.example_key', cast=int)


http://web2py.com/books/default/chapter/29/13/deployment-recipes#AppConfig-module


In the db.py file in web2py 2.19 it says:

migrate_enabled=configuration.get('db.migrate')


What call should I use take() or get()


Furthermore when I set pool_size = 0 in appconfig.ini and in db.py in db = 
DAL()
I set pool_size=configuration.take('db.pool_size') this result in an error 
ticket.
When I click the link to the error ticket I get another error ticket etc. 
It seems
this has something to do with code in the admin app, since that's where the
tickets are stored. I have not been able to locate the code, but it has to 
do
with a < operator comparing a str and int.


Kind regards,

Annet

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/102e94e4-1681-4499-8ed1-c64dde1828a0%40googlegroups.com.

Reply via email to