Hi there,
> It sounds like there are two things in your case:
>
> 1) you should use the url function to make sure that the server path
> gets added to URLs in your program
> 2) the url function has a bug that needs fixing (which is the ticket
> Jorge opened).
I seem to have "fixed" my problem, don't know if it's the proper way
or I just stumbled upon a workaround.
My site works by adding the following filter to my controllers _cpFilterList:
class VirtualPathFilter(object):
def beforeRequestBody(self):
if cherrypy.config.get("virtualPathFilter.on", False):
prefix = cherrypy.config.get("virtualPathFilter.prefix", "")
if prefix:
path = cherrypy.request.path
if path == prefix:
path = "/"
elif path.startswith(prefix):
path = path[len(prefix):]
cherrypy.request.path = path
and the following to my config:
virtualPathFilter.on = True
virtualPathFilter.prefix = "/timaskraning"
To get ${std.url(...)} to work I had to set this also:
server.webpath="timaskraning"
I'll post my stack-trace above and a reference to this thread in the ticket.
Arnar