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
72238d11
Commit
72238d11
authored
Feb 13, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for empty part after semicolon
parent
caded7fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
lib/python/TAL/test/out1.xml
lib/python/TAL/test/out1.xml
+1
-1
lib/python/TAL/test/test1.xml
lib/python/TAL/test/test1.xml
+6
-2
lib/python/TAL/tests/out1.xml
lib/python/TAL/tests/out1.xml
+1
-1
lib/python/TAL/tests/test1.xml
lib/python/TAL/tests/test1.xml
+6
-2
No files found.
lib/python/TAL/test/out1.xml
View file @
72238d11
...
...
@@ -11,7 +11,7 @@
<span
z:insert=
"str:here/id"
>
here/id
</span>
<p
z:define=
"x str:template/title; global five python:2+3
"
z:insert=
"text var:x"
>
template/title
</p>
<p
z:define=
"x str:template/title; global five python:2+3
;"
z:insert=
"text var:five"
>
5
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
...
...
lib/python/TAL/test/test1.xml
View file @
72238d11
...
...
@@ -5,13 +5,17 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:0"
>
This title is not displayed
</h1>
<h1
z:condition=
"python:1"
z:insert=
"str:This Is The Replaced Title"
>
Title
</h1>
<h1
z:condition=
"python:1"
z:insert=
"str:This
Is
The
Replaced
Title"
>
Title
</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:insert=
"str:here/id"
/>
<p
z:define=
"x str:template/title; global five python:2+3
"
z:insert=
"text var:x
"
/>
<p
z:define=
"x str:template/title; global five python:2+3
;"
z:insert=
"text var:five
"
/>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
...
...
lib/python/TAL/tests/out1.xml
View file @
72238d11
...
...
@@ -11,7 +11,7 @@
<span
z:insert=
"str:here/id"
>
here/id
</span>
<p
z:define=
"x str:template/title; global five python:2+3
"
z:insert=
"text var:x"
>
template/title
</p>
<p
z:define=
"x str:template/title; global five python:2+3
;"
z:insert=
"text var:five"
>
5
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
...
...
lib/python/TAL/tests/test1.xml
View file @
72238d11
...
...
@@ -5,13 +5,17 @@
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo python:1"
>
<h1
z:condition=
"python:0"
>
This title is not displayed
</h1>
<h1
z:condition=
"python:1"
z:insert=
"str:This Is The Replaced Title"
>
Title
</h1>
<h1
z:condition=
"python:1"
z:insert=
"str:This
Is
The
Replaced
Title"
>
Title
</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:insert=
"str:here/id"
/>
<p
z:define=
"x str:template/title; global five python:2+3
"
z:insert=
"text var:x
"
/>
<p
z:define=
"x str:template/title; global five python:2+3
;"
z:insert=
"text var:five
"
/>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
...
...
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