X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fsp%2Fcons.py;h=d54c3140bab3ebbfad5984d5b385ac2a34ead8ec;hp=9e81677295a108458f9c9bc0fc8122c93abfe3d5;hb=3414365c207c42f3a2d26edac5b5a1d0bd782d7a;hpb=7bcaef26c590cd10955848fbf313f41c78b8d1ce diff --git a/wrw/sp/cons.py b/wrw/sp/cons.py index 9e81677..d54c314 100644 --- a/wrw/sp/cons.py +++ b/wrw/sp/cons.py @@ -9,6 +9,10 @@ class text(node, str): def __todom__(self, doc): return doc.createTextNode(self) +class raw(node, str): + def __todom__(self, doc): + raise Exception("Cannot convert raw code to DOM objects") + class element(node): def __init__(self, ns, name, ctx): self.ns = ns