I changed it to...
def recipes():
records=db(db.recipe.category==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):
redirect(URL(r=request,f='recipes'))
return dict(form=form)
still the same, I am waiting till the save is green and the hash is
there and making sure the time is also ok but it just doesn't take it.
please tell me i am doing something stupid.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---