[Twisted-Python] Woven Warning -- A Fix

Moshe Zadka m at moshez.org
Sun May 4 00:17:16 MDT 2003


The followning patch fixes the remaining warning in woven, but it
is somewhat ugly.

Any comments?

--- twisted/web/woven/template.py       28 Apr 2003 03:53:28 -0000      1.37
+++ twisted/web/woven/template.py       4 May 2003 06:12:13 -0000
@@ -123,6 +123,7 @@
             parent = node.parentNode
             if parent:
                 parent.replaceChild(self.data, node)
+                node.parentNode = parent
             else:
                 warnings.warn("Warning: There was no parent for node %s; node not mutated." % node)
         return self.data

-- 
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.
Agile Programming Language -- http://www.python.org/




More information about the Twisted-Python mailing list