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
57e848d2
Commit
57e848d2
authored
Feb 14, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output changed because of whitespace-before-repeat hack.
parent
8af87ff6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
+24
-14
lib/python/TAL/test/out1.xml
lib/python/TAL/test/out1.xml
+8
-4
lib/python/TAL/test/out4.xml
lib/python/TAL/test/out4.xml
+4
-3
lib/python/TAL/tests/out1.xml
lib/python/TAL/tests/out1.xml
+8
-4
lib/python/TAL/tests/out4.xml
lib/python/TAL/tests/out4.xml
+4
-3
No files found.
lib/python/TAL/test/out1.xml
View file @
57e848d2
...
...
@@ -15,9 +15,11 @@
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
</p><p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
subaru
</p><p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
acura
</p>
...
...
@@ -28,9 +30,11 @@
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
honda
</li>
</span><span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
subaru
</li>
</span><span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
acura
</li>
</span>
</ul>
...
...
lib/python/TAL/test/out4.xml
View file @
57e848d2
...
...
@@ -4,7 +4,6 @@
<body
xmlns:m=
"http://xml.zope.org/namespaces/metal"
xmlns:z=
"http://xml.zope.org/namespaces/tal"
m:define-macro=
"body"
z:define=
"global count python:0"
>
<ul
m:define-macro=
"whoops"
>
</ul>
<span
z:define=
"global count python:2; global message str:hello world"
/>
...
...
@@ -13,7 +12,8 @@
<li
z:repeat=
"item python:range(count)"
>
0
hello world
</li><li
z:repeat=
"item python:range(count)"
>
</li>
<li
z:repeat=
"item python:range(count)"
>
1
hello world
</li>
...
...
@@ -25,7 +25,8 @@
<li
z:repeat=
"item python:range(count)"
>
0
goodbye cruel world
</li><li
z:repeat=
"item python:range(count)"
>
</li>
<li
z:repeat=
"item python:range(count)"
>
1
goodbye cruel world
</li>
...
...
lib/python/TAL/tests/out1.xml
View file @
57e848d2
...
...
@@ -15,9 +15,11 @@
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
honda
</p><p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
subaru
</p><p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</p>
<p
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
acura
</p>
...
...
@@ -28,9 +30,11 @@
<ul>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
honda
</li>
</span><span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
subaru
</li>
</span><span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
</span>
<span
z:repeat=
"car python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
acura
</li>
</span>
</ul>
...
...
lib/python/TAL/tests/out4.xml
View file @
57e848d2
...
...
@@ -4,7 +4,6 @@
<body
xmlns:m=
"http://xml.zope.org/namespaces/metal"
xmlns:z=
"http://xml.zope.org/namespaces/tal"
m:define-macro=
"body"
z:define=
"global count python:0"
>
<ul
m:define-macro=
"whoops"
>
</ul>
<span
z:define=
"global count python:2; global message str:hello world"
/>
...
...
@@ -13,7 +12,8 @@
<li
z:repeat=
"item python:range(count)"
>
0
hello world
</li><li
z:repeat=
"item python:range(count)"
>
</li>
<li
z:repeat=
"item python:range(count)"
>
1
hello world
</li>
...
...
@@ -25,7 +25,8 @@
<li
z:repeat=
"item python:range(count)"
>
0
goodbye cruel world
</li><li
z:repeat=
"item python:range(count)"
>
</li>
<li
z:repeat=
"item python:range(count)"
>
1
goodbye cruel world
</li>
...
...
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