Ok I think I got it...
I needed to check if it was accepted before it would take it...
so I added after the form = bla bla
if form.accepts(request.vars, session):
response.flash="New order added"
And it works perfectly. Thanks for the help!!
BR,
Jason Brower
On Fri, 2010-01-29 at 01:00 -0800,
hi jason,
by writing
orders = SQLFORM(db.numbers)
you are assigning to the variable "orders" the form. in the following
line you return form=form, but the latter is a null object.
so, either you change the name of the variable like this:
form = SQLFORM(db.numbers)
return dict(form=form)
{{=form}
2 matches
Mail list logo