Another option could be to simply open the file and stream it directly
without redirecting anywhere.  I'm not sure how fast/slow this method
would be though.

@turbogears.expose()
def index(self):
    import os
    return 
cherrypy.lib.cptools.fileGenerator(open(os.path.join("static","index.html"),
'r'))

Lee

Reply via email to