Note: If you serve static files like this, you will run into (potentially) one problem: If (as is common) a link to someplace in the static place _assumes_ index.htm or index.html, and the link is only to a directory, it will not work on web2py (it will work probably everyplace else in the web world).
We should fix this. On Wed, Apr 8, 2009 at 10:27 AM, Timmie <[email protected]> wrote: > > > You can put your files in static and they will all be exposed. > > > > You can also create an action like > > > > def static_content(): > > import os > > files=os.listdir(os.path.join(request.folder,'static')) > > return HTML(BODY(*[TR(TD(A(f),_href=URL > > (r=request,c='static',f=f)))) for f in files])) > > > > to list the content of the static folder. > Thank you for this explanation! > I will try this out. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

