[Zope] Making a folder-like object?
Christian Theune
ct@gocept.com
Fri, 1 Mar 2002 13:46:54 +0100
--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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=20
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=20
> start-of-answer...
>=20
> I'm building an application, using Zope and a database, where users can=
=20
> upload files. These files are stored as BLOBs in the DB, not in the ZODB.
>=20
> The problem is to get back the filename when a user downloads a file.
> I. e., I'll have things like:
> <a href=3D"http://my.host/retrieve?id=3D42">results.xls</a>
> where ``retrieve=B4=B4 is the script.
>=20
> I would like instead to be able to present an address like:
> <a href=3D"http://my.host/retrieve/42/results.xls">results.xls</a>
>=20
> This is the only way I know of to pass the filename to the client=20
> (though I'd be happy to be corrected).
>=20
> So:
>=20
> Is this possible directly?
> Otherwise, should I start hacking, e.g., Gary Poster's FakeFolder, or=20
> are there better ways?
>=20
--=20
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'])
--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8f3g9dUt9X/gknwIRAsgLAKCxcbRLETx2Io0HvcJBu1u2nw599gCcCOIR
ByjGcXM53WocC+doscntxj4=
=SroP
-----END PGP SIGNATURE-----
--ZGiS0Q5IWpPtfppv--