i am using firefox 3.0.7
I am running through the cookbook example and when I get to where you
change the test.py to...
def recipes():
records=db(db.recipe.caegory==request.vars.category)\
.select(orderby=db.recipe.title)
form=SQLFORM(db.recipe,fields=['category'])
return dict(form=form,records=records)
def show():
id=request.vars.id
recipes=db(db.recipe.id==id).select()
if not len(recipes): redirect(URL(r=request,f='recipes'))
return dict(recipe=recipes[0])
def new_recipe():
form=SQLFORM(db.recipe,fields=['title','description',\
'category','instructions'])
if form.accepts(request.vars,session):
redirect(URL(r=request,f='recipes'))
return dict(form=form)
it doesn't save it all the time and even when it cuts out the def
recipes():... part.
and idea what i am doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---