[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/testing.py Do not mistake these attributes with XInclude directives.
Malthe Borch
mborch at gmail.com
Tue Sep 2 09:05:17 EDT 2008
Log message for revision 90700:
Do not mistake these attributes with XInclude directives.
Changed:
U z3c.pt/trunk/src/z3c/pt/testing.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/testing.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/testing.py 2008-09-02 13:03:46 UTC (rev 90699)
+++ z3c.pt/trunk/src/z3c/pt/testing.py 2008-09-02 13:05:17 UTC (rev 90700)
@@ -105,6 +105,10 @@
node = property(node)
+ xi_href = None
+ xi_parse = None
+
+class MockXiElement(MockElement):
xi_href = utils.attribute(
"href", lambda p: expressions.StringTranslation(p).expression)
xi_parse = utils.attribute("parse", default="xml")
@@ -113,6 +117,6 @@
element_mapping = {
config.XHTML_NS: {None: MockElement},
config.META_NS: {None: MockElement},
- config.XI_NS: {None: MockElement}}
+ config.XI_NS: {None: MockXiElement}}
mock_parser = MockParser()
More information about the Checkins
mailing list