Commit 54b0b7b2 authored by Evan Simpson's avatar Evan Simpson

Minor changes

parent de67b0e2
<dtml-var manage_page_header>
<dtml-var expr="manage_form_title(this(), _,
form_title='Page Template Diagnostics',
)">
form_title='Page Template Diagnostics')">
<p class="form-help">
This Page Template needs the following changes in order to operate.
</p>
<dtml-in expr="container.pt_errors()">
<p class="form-help>
<p class="form-help">
&dtml-sequence-item;
</p>
</dtml-in>
<dtml-var manage_page_footer>
<?xml version="1.0" ?>
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:define-macro="master">
<html metal:define-macro="master">
<head>
<title tal:insert="here/title">The title</title>
</head>
......
<?xml version="1.0" ?>
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="here/standard_lf/macros/master">
<html metal:use-macro="here/standard_lf/macros/master">
<body>
<span metal:fill-slot="main">
<p>Welcome to the machine</p>
......
......@@ -8,9 +8,14 @@ class ExpressionTests(unittest.TestCase):
def testCompile(self):
'''Test expression compilation'''
e = Expressions.getEngine()
e.compile('x')
e.compile('path:x')
e.compile('x/y')
for p in ('x', 'x/y', 'x/y/z'):
e.compile(p)
for m in range(2 ** 3):
mods = ''
if m & 1: mods = 'if'
if m & 2: mods = mods + ' exists'
if m & 4: mods = mods + ' nocall'
e.compile('(%s) %s' % (mods, p))
e.compile('string:Fred')
e.compile('string:A$B')
e.compile('string:a ${x/y} b ${y/z} c')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment