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 2020
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 fiel
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 = (db.tablename
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 = mock.patch('pydal.adapters.sqlite.Spatialit
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:
- http://web2p
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
expired'))
6 matches
Mail list logo