[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/translation.py Fixed bug
where injected elements would not be processed for interpolation.
Malthe Borch
mborch at gmail.com
Sun Jul 6 06:05:50 EDT 2008
Log message for revision 88063:
Fixed bug where injected elements would not be processed for interpolation.
Changed:
U z3c.pt/trunk/src/z3c/pt/translation.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/translation.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/translation.py 2008-07-06 09:57:39 UTC (rev 88062)
+++ z3c.pt/trunk/src/z3c/pt/translation.py 2008-07-06 10:05:49 UTC (rev 88063)
@@ -41,8 +41,13 @@
if not skip:
for element in [e for e in self if isinstance(e, lxml.etree._Comment)]:
self._wrap_comment(element)
- for element in self:
+
+ seen = set()
+ while seen != set(self):
+ element = set(self).difference(seen).pop()
element.interpolate(stream)
+ seen.add(element)
+
for element in self:
element.visit(stream)
More information about the Checkins
mailing list