that is only an option - still, you would like to be able to (say) write documentation for web2py using sphinx, generate all the indexes, and server the docs from within your web2py instance.... it's really a packaging / complexity of setup+deployment decision.
On Mon, Apr 13, 2009 at 2:57 AM, Michal Jursa <mic...@jursa.cz> wrote: > > I'd say, if you just need to serve direcotry indexes and static files, > use separate http server for that part and not application server. > > Michal > > Yarko Tymciurak wrote: > > 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 <timmichel...@gmx-topmail.de > > <mailto:timmichel...@gmx-topmail.de>> 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 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 -~----------~----~----~----~------~----~------~--~---