Hi I found an old video from Massimo Di Pierro(when web2py was called gluon)
where he explains how to do an application called recipes: http://vimeo.com/428474
which is very helpful but on one pint the code doesn't work anymore. He has a table for recipes and one for categories.
on one pint pretty much in the end of the video he wants to list all the recipies belonging to one category.
he does it by the following code: try: rows=db(db.recipe.category=request.vars.category).select(db.recipe.ALL)
but when I try to replicate it I cant even compile it with the error keyword can't be an expression.
can anyone help?
Answers (1)
Comments (1)
1
rochacbruno 12 years ago
Should be:
note the ==
replies (2)