Hi all, I have a (very heavily used) system that allows downloads of many different file types from a filesystem (ie located outside the Zope system) to people. The URLs are somwthing like http://blah/blee/get_file?filenumber=213 get_file is an external python method that does all the good stuff of database lookup and logging off downloads. The system gets the file from the unix filesystem and does some machinations with headers such as contennt-type and content-disposition to *try* and get the browsers to behave themselves. What I'd like to do is have something like http://blah/blee/get_file/results.rtf which helps to make the browser download the file correctly. The problem is that the Zope system says that the URL doesn't exist. Is there any way around this (I know that ZSQL methods manage it with traversal, but I can't figure out how to do it with this setup I have). Any thoughts gratefully received! :) Tone
tone, Have a look at the 'external filesystem' product. Set this up to look at the directory on the real filesystem, then you could use your method in a slightly different way, i.e. http://blah/blee/ext_fs/results.rtf/get_file Where ext_fs is the external filesystem and get_file is a method in a lower Folder. I do this sort of stuff with XML Documents works great. Mail me if you need more info. Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Tony McDonald" <tony.mcdonald@ncl.ac.uk> To: <zope@zope.org> Sent: Tuesday, February 01, 2000 10:18 PM Subject: [Zope] Need some help wrt URLs and methods...
Hi all, I have a (very heavily used) system that allows downloads of many different file types from a filesystem (ie located outside the Zope system) to people.
The URLs are somwthing like http://blah/blee/get_file?filenumber=213
get_file is an external python method that does all the good stuff of database lookup and logging off downloads.
The system gets the file from the unix filesystem and does some machinations with headers such as contennt-type and content-disposition to *try* and get the browsers to behave themselves.
What I'd like to do is have something like http://blah/blee/get_file/results.rtf
which helps to make the browser download the file correctly.
The problem is that the Zope system says that the URL doesn't exist.
Is there any way around this (I know that ZSQL methods manage it with traversal, but I can't figure out how to do it with this setup I have).
Any thoughts gratefully received! :) Tone
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Phil Harris -
Tony McDonald