[Twisted-web] livepage url confused

Sridhar Ratna sridharinfinity at gmail.com
Sun Feb 27 18:52:37 MST 2005


On Sun, 27 Feb 2005 17:20:16 -0800, noema <mailinglists at shechen.at> wrote:
> 
> In my livepage code the url tree seems to be confused
> 
> url.root   ... returns the current path while
> 
> url.root.child('some child')   .... throws me an error
> 
> When I looked at url.py I noticed that one may call rememberRootURL() on
> the rootpage to remember the correct root...doing something like this
> failed though:
> 
> req = context.locate(inevow.IRequest)
> req.rememberRootURL()
> 
> How and where would I remember the correct root url?
> 

AFAIK, only url.root (in url.py) and 'guard' uses IRequest.getRootURL
(i.e. appRootURL).  This is actually a nevow bug.  You should see my
previous post - 'Nevow URL trouble'.

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



More information about the Twisted-web mailing list