Re: [web2py] Re: Web3py

2019-06-09 Thread Massimo Di Pierro
please try delete everything in apps/_scaffold/databases/* I was not able to reproduce after I did that On Sunday, 9 June 2019 01:23:08 UTC-7, John Bannister wrote: > > I tried both with and without. Same or very similar result. It is only > complaining about the auth_user_tag table which is

[web2py] Re: Web3py

2019-06-09 Thread 黄祥
*http://localhost:8000/examples/dbform* *error on browser* 500 INTERNAL SERVER ERROR *error on terminal* ERROR:root:Traceback (most recent call last): File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 413, in wrapper ret = func(*func_args, **func_kwargs) File

[web2py] recaptcha language settings How ?

2019-06-09 Thread icodk
How to set reCaptcha2 language ? I tried with the options parameter but got an error that the nl parameter is not recognized form.element('table').insert(-1, TR('' ,Recaptcha2(request, 'PUBLIC_KEY', 'PRIVATE_KEY',options={nl:'da'}))) Looking into the reCaptcha2 class definition I can see

Re: [web2py] A schedule automatic delete from Database

2019-06-09 Thread Lovedie JC
import datetime yesterday = request.now - datetime.timedelta(days=1) db(db.post.modified_on < yesterday).delete() I hope this helps. You can work around it but worked for me in deleting previous posts up to the previous date. You don't have to manually delete but works automatically. Regards On

Re: [web2py] A schedule automatic delete from Database

2019-06-09 Thread Lovedie JC
Had one, let check my archives. On Sun, 9 Jun 2019, 09:47 mostwanted wrote: > Is there a way to schedule an automatic deleting of content from database > on a specified date? I have an application that I want to delete posts > when we reach specified dates. If anyone is familiar with this,

RE: [web2py] Re: Web3py

2019-06-09 Thread John Bannister
I tried both with and without. Same or very similar result. It is only complaining about the auth_user_tag table which is defined in the auth module. From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 08 June 2019 07:19 To: web2py-users

[web2py] A schedule automatic delete from Database

2019-06-09 Thread mostwanted
Is there a way to schedule an automatic deleting of content from database on a specified date? I have an application that I want to delete posts when we reach specified dates. If anyone is familiar with this, your assistance would be greatly appreciated. Regards Mostwanted -- Resources: -