Re: [web2py] Re: How to debug appadmin CSV uploading

2020-05-08 Thread Jon Subscripted
Thanks! El El sáb, 2 may 2020 a las 3:10, Andrew Rogers escribió: > Can't help you Jon sorry. I tried to upload a while back but got a > different issue (see > https://groups.google.com/forum/#!topic/web2py/03-7xKAioD8) So maybe > that feature has fallen into disuse? > > > On Friday, 1 May

[web2py] Re: show_if dependent on multiple fields

2020-05-08 Thread Jim S
That second block should have been an 'or' instead of 'and' db.tablename.conditional_field.show_if = ((db.tablename.checkbox_field_1 == True) | (db.tablename.checkbox_field_2 == True)) -Jim On Friday, May 8, 2020 at 1:07:46 PM UTC-5, Jim S wrote: > > I'm using show_if to conditionally show

[web2py] show_if dependent on multiple fields

2020-05-08 Thread Jim S
I'm using show_if to conditionally show fields on my form. What a great feature! Now however I've run into an instance where I have a field that I want displayed if either of two other fields is checked. I know I can do show_if like this: db.tablename.conditional_field.show_if =

[web2py] [OT] working with spatialite

2020-05-08 Thread Manuele Pesenti
Hi! In order to work with spatialite I had to patch the Spatialite class in this way in my model file (actually in py4web but the pydal is a common project dependency): from unittest import mock ... # Before declaring first DAL instance patcher =

[web2py] Re: two web2py servers and sessions in redis

2020-05-08 Thread 'Annet' via web2py-users
I had a similar problem, Anthony explained to me that I should share the session cookie among all subdomains under the main domain: response.cookies['session_id_A']['domain'] = '.example.com' I hope this points you in the right direction to solve the issue. Annet -- Resources: -

Re: [web2py] Re: login after period of inactivity

2020-05-08 Thread Maurice Waka
I did not have the code for timeout function(wish I could do that) But going back to my error issue, I solved it by: model: auth.settings.login_next = URL('default','user',args='login', extension=False) default/user: auth.messages.ajax_failed_authentication = DIV(H4(T('Your session has