15 Nov 13:26
Problem with "Save Page As ..." after serve_file
From: T. S. Ferreira <tsferreira@...>
Subject: Problem with "Save Page As ..." after serve_file
Newsgroups: gmane.comp.python.cherrypy
Date: 2008-11-15 12:30:34 GMT
Subject: Problem with "Save Page As ..." after serve_file
Newsgroups: gmane.comp.python.cherrypy
Date: 2008-11-15 12:30:34 GMT
I have a fairly complex application which uses the same method to exhibit a choice page and then to exhibit a file which was requested, using "cherrypy.lib.static.serve_file". It works fine except that when I use the browser function "Save Page As ..." it saves not the exhibited text file but the previous HTML choice page! There must be a reason for this strange behavior but I could not figure it out. I prepared a small example (attached) which illustrates the problem. It assumes that there are two additional text files "test1.txt" and "test2.txt" in the directory in which the file "TestServer.py" resides. I am using Python 2.5.1 and Cherrypy 3.1.0. -- -- T. S. Ferreira --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~---
.
I prepared a small example (attached) which illustrates the problem.
It assumes that there are two additional text files "test1.txt" and
"test2.txt" in the directory in which the file "TestServer.py"
resides. I am using Python 2.5.1 and Cherrypy 3.1.0.
RSS Feed