[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/ Fixed tests.
Malthe Borch
mborch at gmail.com
Tue Dec 2 08:50:34 EST 2008
Log message for revision 93542:
Fixed tests.
Changed:
U z3c.pt/trunk/src/z3c/pt/README.txt
U z3c.pt/trunk/src/z3c/pt/language.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/README.txt
===================================================================
--- z3c.pt/trunk/src/z3c/pt/README.txt 2008-12-02 13:42:37 UTC (rev 93541)
+++ z3c.pt/trunk/src/z3c/pt/README.txt 2008-12-02 13:50:33 UTC (rev 93542)
@@ -18,7 +18,7 @@
... </div>""")
>>> print template()
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
Hello World!
</div>
@@ -29,7 +29,7 @@
>>> path = tests.__path__[0]
>>> template_file = PageTemplateFile(path+'/helloworld.pt')
>>> print template_file()
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
Hello World!
</div>
@@ -49,12 +49,12 @@
>>> instance = MyClass()
>>> print instance.template()
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
Hello World!
</div>
>>> print instance.template_file()
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
Hello World!
</div>
@@ -85,7 +85,7 @@
class).
>>> print template.bind(view)(test=u'test')
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
<span>view</span>
<span>context</span>
<span>request</span>
@@ -96,7 +96,7 @@
>>> template = ViewPageTemplateFile(path+'/view.pt')
>>> print template.bind(view)(test=u'test')
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
<span>view</span>
<span>context</span>
<span>request</span>
@@ -115,7 +115,7 @@
... </div>""")
>>> print template()
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
${this does not break}
</div>
@@ -130,7 +130,7 @@
... </div>""")
>>> print template(foo=u'bar')
- <div>
+ <div xmlns="http://www.w3.org/1999/xhtml">
<div>
bar
</div>
Modified: z3c.pt/trunk/src/z3c/pt/language.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/language.py 2008-12-02 13:42:37 UTC (rev 93541)
+++ z3c.pt/trunk/src/z3c/pt/language.py 2008-12-02 13:50:33 UTC (rev 93542)
@@ -42,10 +42,4 @@
config.METAL_NS: {None: METALElement}}
fallback = XHTMLElement
-
default_expression = 'path'
-
- def parse(self, body):
- root, doctype = super(Parser, self).parse(body)
- root.meta_translator = self.default_expression
- return root, doctype
More information about the Checkins
mailing list