From: Fredrik Tolf Date: Fri, 9 May 2014 06:14:21 +0000 (+0200) Subject: Include a selfpath in requests derived from a funplex. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=65e0a59d1b85d30d87e39039cb99330d2d05474c;p=wrw.git Include a selfpath in requests derived from a funplex. --- diff --git a/wrw/util.py b/wrw/util.py index 557b25d..460344f 100644 --- a/wrw/util.py +++ b/wrw/util.py @@ -49,7 +49,9 @@ class funplex(object): p = p.partition("/")[0] bi = len(p) + 1 if p in self.dir: - return self.dir[p](req.shift(bi)) + sreq = req.shift(bi) + sreq.selfpath = req.pathinfo[1:] + return self.dir[p](sreq) raise resp.notfound() def add(self, fun):