Hi Anthony,
Thanks for your reply.
Note sure if the above is your actual code, but I think you wanted:
>
> db.ignore_field_case = myconf.take('ignore_field_case', cast=lambda value:
> bool(int(value)))
>
This is my actual code for the connection string:
db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size',
cast=lambda value: int(value)), lazy_tables=myconf.take('db.lazy_tables',
cast=lambda value: bool(int(value))),
migrate_enabled=myconf.take('db.migrate_enabled', cast=lambda value:
bool(int(value))), ignore_field_case=myconf.take('db.ignore_field_case',
cast=lambda value: bool(int(value))), check_reserved=['all'])
and in appconfig.ini
; db configuration
[db]
uri = postgres://********:********@localhost:5432/********
migrate = 0
migrate_enabled = 0
pool_size = 1
lazy_tables = 1
ignore_field_case = 1
The Web2py book gives the following syntax for ignore_field_case:
db = DAL(.postgres://...',...,ignore_field_case=False)
I hope I provided you with sufficient information to help me solve the
issue.
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 [email protected].
For more options, visit https://groups.google.com/d/optout.