Re: [web2py] Timeout for data entry screens: Help!

2021-02-04 Thread Davidiam
Thanks Massimiliano, I will ask the developer if he can try that.  

We are currently exploring another option using ajax to save all changes 
immediately.  If a form field is changed, it is sanved immediatel via an 
ajax call.

I suspect the timeout may be coming from our Singe Sign-On framework, so we 
need to check that as well.  

Kind Regards,
David

On Friday, January 29, 2021 at 4:13:15 PM UTC+1 Massimiliano wrote:

> Reading better you message, I'm not sure that auth.settings.expiration is 
> what you need. 
> Sorry
>
> Il giorno ven 29 gen 2021 alle ore 16:10 Massimiliano  
> ha scritto:
>
>> You can set:
>>
>> auth.settings.expiration
>>
>> Value are in seconds. So 86400 is one day,
>>
>>
>>
>> Il giorno ven 29 gen 2021 alle ore 14:42 Davidiam  
>> ha scritto:
>>
>>> 2.18.5-stable+timestamp.2019.04.08.04.22.03
>>> (Running on Microsoft-IIS/10.0, Python 3.6.8) 
>>>  
>>> Hello,
>>>
>>> We built some web2py applications and we are now getting feedback from 
>>> the users that if they don't save their data entry screen data within about 
>>> 10 minutes, that the save fails and they have to re-enter all their data.  
>>> As they often get interruptions while entering data, this is becoming a bit 
>>> of a problem.
>>>
>>> Can this "timeout" be modified to give them more time?  Is this coming 
>>> from web2py or would this me more an infrastructure issue?
>>>
>>> Thanks in advance for any replies!
>>> David
>>>
>>> -- 
>>> 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 web2py+un...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/c389ecc4-0693-438d-ae89-ef01660dfb34n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> Massimiliano
>>
>
>
> -- 
> Massimiliano
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8d8bb0c7-3cb8-4f76-ad5b-3426447e94acn%40googlegroups.com.


[web2py] Warning rdbms deprecation notice in GAE

2021-02-04 Thread Jacinto Parga
Hi, 

There is this warning in GAE deployment:

Please remove any imports of google.appengine.api.rdbms. First Generation 
Cloud SQL instances have been shut down, and rdbms.py will be removed in a 
future release. See: 
https://cloud.google.com/sql/docs/mysql/deprecation-notice

If you deploy using Datastore you don't need rdbms at all so I took this 
workaround:

In pydal _gae.py, line 15:

from google.appengine.api import namespace_manager #, rdbms

In pydal google.py lines 15, 16:
if gae:
from .._gae import ndb, namespace_manager, classobj, NDBPolyModel #, 
rdbms 

In pyday google.py lines 54, 55:
#def connector(self):
#   return rdbms.connect(**self.driver_args)

It obviously disable @adapters.register_for("google:sql") but if Datastore 
is used  there is no problem.


-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/405cd43a-5255-455e-b223-e982da9b9829n%40googlegroups.com.