X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Futil.py;h=460344f518888b4ef3ea4a29fb2147a97602f60b;hb=c4b97e160d6f6a3e4ac6a940c1bda0c6759ca4e8;hp=557b25d684c8a57e861e479fd3002ce0aaae4fff;hpb=438b6207201da45a2f23e6ff207a61a0f57b20f3;p=wrw.git 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):