Re: [web2py] Web2py and database integration

2021-05-14 Thread Christian Varas
Could you share your db.py ? Maybe there are declared 2 connections to db and one might be overwriting the one who connects to postgresql. Cheers. Chris. El El vie, 14 de may. de 2021 a la(s) 15:22, F.C. escribió: > I need some help. I have started web2py development with a passion to >

[web2py] Web2py and database integration

2021-05-14 Thread F.C.
I need some help. I have started web2py development with a passion to really master it. I love python and really want to see if I can find some excellent uses for writing online applications. The weird problem I am running into is the following and I need some help. I have an application

[web2py] Re: How do I correct this error: AttributeError: 'NoneType' object has no attribute 'id'

2021-05-14 Thread Maurice Waka
Seems to work after restarting the system On Friday, May 14, 2021 at 3:49:41 PM UTC+3 Maurice Waka wrote: > I have a small code with this: > > db.define_table('book', > Field('name',requires = IS_NOT_EMPTY()), > Field('category', >

[web2py] form.custom.widget.image breaks in case of form.errors

2021-05-14 Thread 'Annet' via web2py-users
I have another problem with form.custom: When I browse and select an image and submit the form, if the form contains an error, the form empties the image field. So the user has to browse for the image again I don't know in which version of web2py this error was introduced, but is very annoying

[web2py] form.custom.widget.image does not show preview

2021-05-14 Thread 'Annet' via web2py-users
I have a view with the following code: {{=form.custom.widget.image}} The problem is that in the update form the image does not display, which is very confusing to the user. is there a way to fix this issue? Kind regards, Annet -- Resources: - http://web2py.com -

[web2py] How do I correct this error: AttributeError: 'NoneType' object has no attribute 'id'

2021-05-14 Thread Maurice Waka
I have a small code with this: db.define_table('book', Field('name',requires = IS_NOT_EMPTY()), Field('category', requires = IS_IN_SET(['Politics','Finance','Fiction','Wellness']), default =