Hi I have a custom comment form:
def comment(): """ create comment form. Every comment is id locked to the specific post """ #crud.settings.create_next = URL('index') post=db(db.blog.id==request.args(0)).select().first() db.comments.post_id.default=post.id form=crud.create(db.comments) if form.process().accepted: print 'form accepted' else: print 'not accepted' return dict(form=form) # return LOAD('default','comment.load',args=post.id,ajax=True) comment.load: {{=form.custom.begin}} <div class="row"> <h5>date: </h5>{{=form.custom.widget.created_on}} </div> <div class="row"> <h5>name: </h5>{{=form.custom.widget.created_by}} </div> <div class="row"> <h5>mail: </h5>{{=form.custom.widget.mail}} </div> <div class="row"> <h5>link: </h5>{{=form.custom.widget.link}} </div> <div class="row"> <h5>comment:</h5>{{=form.custom.widget.comment}} </div> {{=form.custom.submit}} {{=form.custom.end}} that is called from index.html: {{=A(TAG.i(_class="icon-plus-sign"), _rel="tooltip", _title="testing", _class="btn", _href='#', _onclick="jQuery('#uc').toggle();")}} <div id="uc"> {{=LOAD('default','comment.load',args=result.id,ajax=True)}} </div> but the form.process().accepted doesn't work even though everything if filed correctly. why? --