[Tutor] Cherrypy and Iframes (or how to insert a file in a page)

"Andrés Chandía" andres at chandia.net
Sat Apr 9 23:23:04 CEST 2011



the codes
return "<iframe src=\"file.txt\" width=\"100%\"
height=\"500\" scrolling=\"auto\"
frameborder=\"2\"></iframe>"

file.txt is genereated by a
previous python script and I need to display it at the web generated by cherrypy, but it gives
me this error:


Traceback (most recent call last):
  File
"/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 606, in respond
   
cherrypy.response.body = self.handler()
  File
"/usr/lib/pymodules/python2.6/cherrypy/_cperror.py", line 227, in __call__
   
raise self
NotFound: (404, "The path '/file.txt' was not found.")





I tryed changing the path with no success, so I guess is something
different

Maybe there is another way to do this....


_______________________
            andrés
chandía

P No imprima
innecesariamente. ¡Cuide el medio ambiente!




More information about the Tutor mailing list