{{extend 'layout.html'}}

<table>
  {{for objectComment in objectComments:}}
  <tr>
    <td>{{=objectComment.created_on}}</td>
    <td>{{=objectComment.created_by.first_name}} 
{{=objectComment.created_by.last_name }}: </td><td>testing: 
{{=objectComment.created_by}}</td>
    <td>{{=MARKMIN(objectComment.superObjectComment)}}</td>
  </tr>
  {{pass}}
</table>
<hr>
{{=form}}

it's used in a "for" loop

@auth.requires_login()
def comment_on_an_object():
    db.SuperObjectComment.superObjectID.default = request.get_vars.filter
    db.SuperObjectComment.superObjectID.readable = False
    db.SuperObjectComment.superObjectID.writable = False  
    commentsHeader=db.SuperObject(request.get_vars.filter) 
    form = crud.create(db.SuperObjectComment)
    objectComments = db(db.SuperObjectComment.superObjectID == 
request.get_vars.filter).select() ## 2ND PLACE ARGS PASSED - CREATES AN 
ITERABLE "SET" (OR LIST)
    return locals()   





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