From: Fredrik Tolf Date: Tue, 4 Jun 2013 13:30:59 +0000 (+0200) Subject: Set __wrapped__ in xhtmlresp as well. X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=commitdiff_plain;h=d22f3483df089fc239b4182807c12aaab5ab1c7d Set __wrapped__ in xhtmlresp as well. --- diff --git a/wrw/sp/xhtml.py b/wrw/sp/xhtml.py index 3c6c0f6..447c1b1 100644 --- a/wrw/sp/xhtml.py +++ b/wrw/sp/xhtml.py @@ -58,4 +58,5 @@ def forreq(req, tree): def xhtmlresp(callable): def wrapper(req): return forreq(req, callable(req)) + wrapper.__wrapped__ = callable return wrapper