[web2py] How do I define this item

2014-05-21 Thread Maurice Waka
When I iterate through the controller as this: def return_post: form = SQLFORM(db.post) for c in form: form1= post.body form2 = form1.split()return dict(form2=form2) I get an error that form2 is not defined in the view{{=form2}}. How do i define this form2? --

Re: [web2py] How do I define this item

2014-05-21 Thread Marco Mansilla
El Wed, 21 May 2014 03:01:46 -0700 (PDT) Maurice Waka mauricew...@gmail.com escribió: When I iterate through the controller as this: def return_post: form = SQLFORM(db.post) for c in form: form1= post.body form2 = form1.split()return dict(form2=form2) I get