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

Minor changes

parent de67b0e2
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var expr="manage_form_title(this(), _, <dtml-var expr="manage_form_title(this(), _,
form_title='Page Template Diagnostics', form_title='Page Template Diagnostics')">
)">
<p class="form-help"> <p class="form-help">
This Page Template needs the following changes in order to operate. This Page Template needs the following changes in order to operate.
</p> </p>
<dtml-in expr="container.pt_errors()"> <dtml-in expr="container.pt_errors()">
<p class="form-help> <p class="form-help">
&dtml-sequence-item; &dtml-sequence-item;
</p> </p>
</dtml-in> </dtml-in>
<dtml-var manage_page_footer> <dtml-var manage_page_footer>
<?xml version="1.0" ?> <html metal:define-macro="master">
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:define-macro="master">
<head> <head>
<title tal:insert="here/title">The title</title> <title tal:insert="here/title">The title</title>
</head> </head>
......
<?xml version="1.0" ?> <html metal:use-macro="here/standard_lf/macros/master">
<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">
<body> <body>
<span metal:fill-slot="main"> <span metal:fill-slot="main">
<p>Welcome to the machine</p> <p>Welcome to the machine</p>
......
...@@ -8,9 +8,14 @@ class ExpressionTests(unittest.TestCase): ...@@ -8,9 +8,14 @@ class ExpressionTests(unittest.TestCase):
def testCompile(self): def testCompile(self):
'''Test expression compilation''' '''Test expression compilation'''
e = Expressions.getEngine() e = Expressions.getEngine()
e.compile('x') for p in ('x', 'x/y', 'x/y/z'):
e.compile('path:x') e.compile(p)
e.compile('x/y') 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:Fred')
e.compile('string:A$B') e.compile('string:A$B')
e.compile('string:a ${x/y} b ${y/z} c') 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