Where do we submit book errata?

65 views
Skip to first unread message

Yarin

unread,
May 18, 2012, 4:31:45 PM5/18/12
to web...@googlegroups.com
I see no obvious place to report book errors/corrections. There should be a link in the book itself.

Anthony

unread,
May 18, 2012, 4:34:40 PM5/18/12
to web...@googlegroups.com
Yes, that would be nice. For now, you can report here.

Anthony

Yarin

unread,
May 18, 2012, 4:45:24 PM5/18/12
to web...@googlegroups.com
In http://web2py.com/books/default/chapter/29/9#Authorization

the new user is conventionally "user_[id]" where [id] is the id of the newly created id.
Should read:
the new user is conventionally "user_[id]" where [id] is the id of the newly created group.

(Also, can we change the table of contents from a UL to a OL so that we can refer to chapters by numbers)

Anthony

unread,
May 18, 2012, 5:19:21 PM5/18/12
to web...@googlegroups.com
the new user is conventionally "user_[id]" where [id] is the id of the newly created id.
Should read:
the new user is conventionally "user_[id]" where [id] is the id of the newly created group.

No, the [id] is the id of the user. It is used to construct "user_[id]", which is the name of the group (the id of the group is whatever the auto-generated id turns out to be).
 
(Also, can we change the table of contents from a UL to a OL so that we can refer to chapters by numbers)

I'll leave that up to Massimo.

Anthony

Yarin

unread,
May 18, 2012, 5:36:40 PM5/18/12
to web...@googlegroups.com
Sorry you're right- should read: of the newly created user.

Anthony

unread,
May 18, 2012, 5:57:57 PM5/18/12
to web...@googlegroups.com
On Friday, May 18, 2012 5:36:40 PM UTC-4, Yarin wrote:
Sorry you're right- should read: of the newly created user.

Fixed. 

pyhead

unread,
May 18, 2012, 8:32:18 PM5/18/12
to web...@googlegroups.com

"generate your own self-signed certificates following the instructions in ref."



Example code error:


TypeError: verifyURL() takes at least 1 argument (1 given)

Wrong:

    if not URL.verify(hmac_key=KEY): raise HTTP(403)

Right:

    if not URL.verify(request, hmac_key=KEY): raise HTTP(403)

Missing closing ')':

    return dict(link=URL('two', vars=dict(a=123), hmac_key=KEY))

Anthony

unread,
May 18, 2012, 9:44:54 PM5/18/12
to web...@googlegroups.com

"generate your own self-signed certificates following the instructions in ref."


Actually, all the refs in the book are broken. 


Example code error:


TypeError: verifyURL() takes at least 1 argument (1 given)

Wrong:

    if not URL.verify(hmac_key=KEY): raise HTTP(403)

Right:

    if not URL.verify(request, hmac_key=KEY): raise HTTP(403)

Missing closing ')':

    return dict(link=URL('two', vars=dict(a=123), hmac_key=KEY))

Fixed.

Anthony 

Massimo Di Pierro

unread,
May 19, 2012, 4:05:08 PM5/19/12
to web...@googlegroups.com
On Friday, 18 May 2012 20:44:54 UTC-5, Anthony wrote:

"generate your own self-signed certificates following the instructions in ref."


Actually, all the refs in the book are broken. 

I fixed them, except for references that contains a :. ":" should be  replaced by "-". Will do it soon.

Shane Tzen

unread,
May 23, 2012, 7:28:30 PM5/23/12
to web...@googlegroups.com
BTW:

http://web2py.com/books/default/chapter/29/3 - "isx" should be "six"

http://web2py.com/books/default/chapter/29/4 - Sentences - "The first
time you start web2py, two new folders are created: deposit and
applications. The "welcome" app is zipped into a "welcome.w2p" file to
be used as a scaffolding app." are repeated twice

http://www.web2py.com/examples/default/examples - not part of the
book, but "formsts" would be "formats"

Yarin

unread,
May 26, 2012, 7:49:53 PM5/26/12
to web...@googlegroups.com
In http://web2py.com/books/default/chapter/29/4#Accessing-the-API-from-Python-modules:

Global variables instead are defined only once when the model is imported for the first time.
Should read when the module is imported for the first time


On Friday, May 18, 2012 4:34:40 PM UTC-4, Anthony wrote:
Reply all
Reply to author
Forward
0 new messages