db(db[request.args(0)].id == request.args(1)).update(**{f: v for f, v in form.vars.iteritems()})
db(db[request.args(0)].id == request.args(1)).update()
db(db[request.args(0)].id == request.args(1)).update(f1=None, f2=None, **{f: v for f, v in form.vars.iteritems() if f not in ('f1', 'f2')})
**{f: v for f, v in form.vars.iteritems()}
**db[request.args(0)]._filter_fields(form.vars)
--
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.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes I struggle with it to make compute works...I come up with something like this :after .acceptedfor f in db[request.args(0)].fields:if f != db[request.args(0)]._id and f != db[request.args(0)].record_review_status:form.vars[f] = form.vars.get(f, db[request.args(0)](request.args(1))[f])
--
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.