[Twisted-web] Nevow with CGI - Using URLs in xml templates

Sridhar Ratna aka Srid sridharinfinity at gmail.com
Sun Feb 13 18:25:55 MST 2005

On Sun, 13 Feb 2005 13:13:51 +0100, Federico Di Gregorio <fog at initd.org> wrote:
> For files that have absolute positions, use absolute URLS and a
> VirtualHostMonster (import vhost ...).

Btw, for simplicity, I simply 'remember'ed the prefix URL in context.

prefix_url_from_config = http://server/cgi-bin/blog/index.py
ctx.remember(prefix_url_from_config, IRootURL)

print url.URL.fromString(IRootURL(ctx)).child('foo').child('bar')

That's it.

Sridhar Ratna - http://srid.bsdnerds.org

More information about the Twisted-web mailing list