From 65e0a59d1b85d30d87e39039cb99330d2d05474c Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 9 May 2014 08:14:21 +0200 Subject: [PATCH] Include a selfpath in requests derived from a funplex. --- wrw/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.11.0