[web2py] custom form validation doesn't work

2012-12-15 Thread jonas
Hi. I have a default form that is passed in view: {{=form}} using this validation and insertion works. but when I use a custom form none of that works. why? Also form.process().accepted works only when using default form. My second question is: when submitting the form I redirect to index, and

[web2py] custom form validation

2012-12-14 Thread jonas
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(