Il 22/12/14 07:07, Massimo Di Pierro ha scritto:
> We do not have a way to serialize queries in a server independent way but we
> should.
I'm using this recipe with success:
http://www.web2pyslices.com/slice/show/1593/class-for-building-db-queries-from-python-dictionaries
essentially I serialize query using:
query = db.table.id>0
serialized = query.as_json()
and I rebuild them just with:
rebuilded = qparser.parse(json_loads(request.vars._query))
and it's working just fine at the moment.
M.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.