On Friday, October 31, 2014 8:01:53 PM UTC-4, Alex Glaros wrote:
>
> Thanks Anthony, args look good:
>
> http://127.0.0.1:8000/ES1/default/comment_on_an_object?filter=5&id=1
>
> but for 2nd variable, 
>
> objectComments = db.SuperObjectComment(request.get_vars.id)
>

The above method does not return a Rows object with multiple records -- it 
only returns a single record (as a Row) object. If you need to do a select 
that returns multiple records, do no use the above syntax. Instead, do a 
regular select:

db(db.SuperOjbectComment.some_id_field == request.get_vars.id).select()

Presumably there is some field in db.SuperObjectComment that stores id's 
that should match request.get_vars.id. If not, then you have not specified 
the model or the URL variables properly.

Anthony

-- 
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.

Reply via email to