X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fsp%2Fxhtml.py;h=50c70b6e7e3260d5f70ee01549acc613ca246aec;hb=d38b200493b3ed263dbf10581d6d204462ed68c4;hp=52e7f9f8e653c5d679d300a15c34dd8d6c4396fe;hpb=3b67497cb853ea7dd49f579566e5f0b60a3c97d7;p=wrw.git diff --git a/wrw/sp/xhtml.py b/wrw/sp/xhtml.py index 52e7f9f..50c70b6 100644 --- a/wrw/sp/xhtml.py +++ b/wrw/sp/xhtml.py @@ -19,7 +19,7 @@ class xhtmlcontext(_cons.context): def addattr(self, node, k, v): k = str(k) - node.attrs[self.attrmap.get(k, k)] = str(v) + super().addattr(node, self.attrmap.get(k, k), v) def cons(ctx=None): if ctx is None: ctx = xhtmlcontext() @@ -60,4 +60,5 @@ def forreq(req, tree): def xhtmlresp(callable): def wrapper(req): return forreq(req, callable(req)) + wrapper.__wrapped__ = callable return wrapper