Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
54b0b7b2
Commit
54b0b7b2
authored
Apr 27, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes
parent
de67b0e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
lib/python/Products/PageTemplates/dtml/ptDiagnostic.dtml
lib/python/Products/PageTemplates/dtml/ptDiagnostic.dtml
+4
-4
lib/python/Products/PageTemplates/examples/standard_lf.html
lib/python/Products/PageTemplates/examples/standard_lf.html
+1
-4
lib/python/Products/PageTemplates/examples/welcome.html
lib/python/Products/PageTemplates/examples/welcome.html
+1
-4
lib/python/Products/PageTemplates/tests/testExpressions.py
lib/python/Products/PageTemplates/tests/testExpressions.py
+8
-3
No files found.
lib/python/Products/PageTemplates/dtml/ptDiagnostic.dtml
View file @
54b0b7b2
<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>
lib/python/Products/PageTemplates/examples/standard_lf.html
View file @
54b0b7b2
<?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>
...
...
lib/python/Products/PageTemplates/examples/welcome.html
View file @
54b0b7b2
<?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>
...
...
lib/python/Products/PageTemplates/tests/testExpressions.py
View file @
54b0b7b2
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment