[Zope-dev] How to handle "special" sub-directories
Casey Duncan
cduncan@kaivo.com
Tue, 17 Apr 2001 13:37:02 -0600
Remi Delon wrote:
>=20
> I tried creating the pathhandler at the root and naming it index_html,
> but it still doesn't do what I want.
>=20
> If I try to access the url www.website.com, then the path_handler is in=
deed
> "called" and my DTML method is called (and the variable "path_to_handle=
" is
> empty). If I try to access the URL www.website.com/index_html/a/b/c/d, =
it
> works too (path_to_handle is ['a', 'b', 'c', 'd']).
> But if I try to access the URL www.website.com/a/b/c/d (which is what I
> want), then it fails (Zope says it cannot find the url), which means th=
e
> pathhandler index_html doesn't get "called".
>=20
> What can I do ?
>=20
> Thanks,
>=20
> R=E9mi.
>=20
> PS: I'm using Zope 2.2.2. I hope this has nothing to do with it !
>=20
Perhaps you could capture that error and rerun the path through the
pathhandler by adding some code to standard_error_message. If that fails
then display the error as usual.
--=20
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>