On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give the record, decides whether the user is or not authorized to download the file stored in the record.
Especially: "To required authentication and authorization in order to download any file:" and "where the lambda is a function hat, give the record, ^ ^^^^^ decides whether the user ..." On Wed, Jun 3, 2009 at 11:52 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > http://www.web2py.com/examples/static/cookbook2.pdf -- Alexei Vinidiktov --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---