Crud edit form appears with correct args, but I don't see the original text 
that user is supposed to edit.

If I type text into the form, it doesn't update the record.

Anyone see anything wrong?

HTML that calls the controller 
<td> {{if auth.user_id == objectComment.created_by:}} {{=A("Edit me", 
_href=URL('default','edit_object_comment', args=objectComment.id), 
_class='btn btn-min')}}</td>  

CONTROLLER - edit_object_comment
@auth.requires_login()
def edit_object_comment():
    db.SuperObjectComment.id.default = request.get_vars.filter
    db.SuperObjectComment.superObjectID.readable = False
    db.SuperObjectComment.superObjectID.writable = False  
    commentRecord=db.SuperObjectComment(request.get_vars.filter)
    edit_comment = crud.update(db.SuperObjectComment, commentRecord)
    return dict(edit_comment=edit_comment)

ARGUMENTS that appear on webpage
http://127.0.0.1:8000/ES1/default/edit_object_comment/15

thanks,

Alex Glaros


-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to