I am currently using download() for showing some images in my layout.html. Interestingly, if I decorate download() with requires_login(), then the forms on the pages, when not logged-in, do not work. (also, the images don't show up, but that is the expected behavior)
@t2.requires_login(to='login') def download(): import os path=os.path.join(request.folder,'uploads',request.args[0]) return response.stream(path) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---