SSL page missing on http://web2py.com/books/default/chapter/29/13

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

link broken: [openssl] http://web2py.com/books/default/reference/29/openssl


Example code error:

http://www.web2py.com/books/default/chapter/29/4#Digitally-signed-urls

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))

Reply via email to