configuration.take() or configuration.get() and pool_size = 0 error

10 views
Skip to first unread message

Annet

unread,
Apr 8, 2020, 11:14:41 AM4/8/20
to web2py-users
In the online verson of the book it says:

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



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
Reply all
Reply to author
Forward
0 new messages