Re: [web2py] Re: web2py and pouchdb

2017-10-09 Thread 黄祥
yes, you are right, it's javascript/web2py problem, fix it with: *controllers/default.py* def pouchdb(): form = SQLFORM.factory( ... ) if form.process(formname = request.function).accepted: response.flash = 'form accepted' elif form.errors:

Re: [web2py] Re: web2py and pouchdb

2017-10-09 Thread António Ramos
Why do you want pouchdb with web2py ? for client cache? pouchdb is a client only database unless you sync it to a couchdb server. Web2py is a server side framework. Anyway your problem is a javascript/web2py problem , not a pouchdb/web2py problem... maybe this helps you a litle

[web2py] Re: web2py and pouchdb

2017-10-08 Thread 黄祥
tested with min app from js on views side, but the result is not expected, the form field name store in indexeddb {{=request.vars.your_name}} as is not the form field value *controllers/default.py* def pouchdb(): form = SQLFORM.factory( Field('your_name', requires = IS_NOT_EMPTY() )