Dear web2py users,

I have some questions about the book :

1) There is a typo here : 
http://www.web2py.com/book/default/chapter/10#Auto-completion
It should be "if not request.vars.month:" and not "it not
request.vars.month:"

2) On page 69, what do you mean by "private" ?
" Class atributes, methods, and operators starting with a double
underscore are usually intended to be private"

3) On page 105, there is the following line :
"images = db().select(db.image.ALL, orderby=db.image.title)"

On page 108, there is the following line :
"comments = db(db.comment.image_id==image.id).select()"

When is the query written inside the brackets of db() and when is it
written inside the brackets of select() ?

4) On page 108, there is this line :
"db.comment.image_id.default = image.id"

What does "default" do ? Couldn't it just be "db.comment.image_id =
image.id" ?

Thanks a lot,
Archibald

Reply via email to