Hi. This sounds like a job for a framework like ZPatterns which already addressed this issues. If you only think about a quick hack, then look forward on using a Script(Python) with the traverse_subpath approach. Greetings. Christian On Fri, Mar 01, 2002 at 02:33:10PM +0100, Yves Bastide wrote:
The Subject line is not the question; it's only a possible start-of-answer...
I'm building an application, using Zope and a database, where users can upload files. These files are stored as BLOBs in the DB, not in the ZODB.
The problem is to get back the filename when a user downloads a file. I. e., I'll have things like: <a href="http://my.host/retrieve?id=42">results.xls</a> where ``retrieve´´ is the script.
I would like instead to be able to present an address like: <a href="http://my.host/retrieve/42/results.xls">results.xls</a>
This is the only way I know of to pass the filename to the client (though I'd be happy to be corrected).
So:
Is this possible directly? Otherwise, should I start hacking, e.g., Gary Poster's FakeFolder, or are there better ways?
-- Christian Theune - ct@gocept.com gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981 reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])