Hi! First of all, thanks for looking in to it.
Just to make sure I understand the problem. First call happens via get on submission a post happens, since those are different web2py converts the id parameter to a list since it can for some reason not determine what else to do. Is that near the mark? If so? How did you get to that result. Thanks for taking the time to educate me it is much appreciated. BR On Wednesday, 31 July 2013 16:53:20 UTC+2, Alan Etkin wrote: > > Ok. This is not a mongodb specific issue. It seems that it is caused by > the way you are processing forms. The id value is submitted twice (with get > and post methods) and when web2py parses the request, the id field > submitted is converted to a bar encoded list of duplicated values instead > of the expected single reference value. So, one way of solving the issue is > not using raw get vars in the uri to request an update form, but use the > arg syntax like: > > <url>/mytable/<id> > > So you can retrieve the record with > > db.mytable[request.args[1]] > > Another way would be to set the id reference and the form methods to match > (for example using GET for both the id reference and the form). Something > like > > form = SQLFORM(..., _method="get") > > > -- --- 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. For more options, visit https://groups.google.com/groups/opt_out.