[web2py] Re: Problem creating forms inside a form.accepts

2011-08-25 Thread Francisco
Thanks for the tip. That was exactly the problem. I have found I fix, it's not yet fully working but it's a work in progress. What I'm doing is running a loop of all available forms in the dictionary and trying to accept the request.vars for each of them. It's not very efficent though, so if anyo

[web2py] Re: Problem creating forms inside a form.accepts

2011-08-25 Thread Francisco
Thanks for the help. Here is the complete function defined in the controller: -- code for controller starts -- @auth.requires_login() def new_sale(): response.title="New sale" if not session.cart: session.cart={} if not session.cart_qty: session.cart_qty={} if not session.

[web2py] Re: Problem creating forms inside a form.accepts

2011-08-24 Thread pbreit
I unfortunately help because Google Groups is not showing your code formatting very well (nothing is indented). Multiple forms on one page is definitely challenging especially since I think you want one form to be based on the other. We might need to see more of your code (where's the "return"?