[Twisted-web] redirecting root resource

Federico Tomassini federicotom at yahoo.it
Sun Feb 24 07:40:05 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi alls,

how can I redirect systematically the root url "/" ?

Each time "/" is requested, I want to redirect to "/foo/bar", but this
does not have to compromise other urls such "/baz/zoo", which have to be
handled normally with RootResource.childFactory().

The only idea I have is to define the same docFactory and renderers for
RootResource and BazZoo rend.Page, without doing a redirect: but this is
very sad and, in fact, that's not what I want.

any idea?

br

- --
efphe
Today is Setting Orange, the 55th day of Chaos in the YOLD 3174
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFHwWWli7obm7aBjHcRAleQAJ492N2rguiUaobXgx1k1OFw9I6V6QCfcS1C
pdORD0GZ97NRdvs67I+Q5Sg=
=NWY2
-----END PGP SIGNATURE-----



More information about the Twisted-web mailing list