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
08f2e1f8
Commit
08f2e1f8
authored
Jan 26, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test files for TAL prototype
parent
b444381a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
298 additions
and
0 deletions
+298
-0
lib/python/TAL/test/test1.xml
lib/python/TAL/test/test1.xml
+30
-0
lib/python/TAL/test/test2.xml
lib/python/TAL/test/test2.xml
+119
-0
lib/python/TAL/tests/test1.xml
lib/python/TAL/tests/test1.xml
+30
-0
lib/python/TAL/tests/test2.xml
lib/python/TAL/tests/test2.xml
+119
-0
No files found.
lib/python/TAL/test/test1.xml
0 → 100644
View file @
08f2e1f8
<?xml version="1.0" ?>
<html>
<head>
dadada
</head>
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo as python:1"
>
<h1
z:insert=
"str:This Is The Replaced Title"
>
Title
</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:insert=
"str:here/id"
/>
<p
z:define=
"x as str:template/title; global five as python:2+3"
z:insert=
"text var:x"
/>
<p
z:replace=
"for car in python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
</p>
<!-- more examples -->
<ul
z:insert=
"for car in python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
Car Name
</li>
</ul>
<a
href=
"foo"
z:attributes=
"href = python:'http://python.org' "
>
python
</a>
</body>
</html>
lib/python/TAL/test/test2.xml
0 → 100644
View file @
08f2e1f8
<?xml version="1.0" ?>
<biztalk_1
xmlns=
"urn:schemas-biztalk-org:biztalk:biztalk_1"
>
<header
plain=
"guido"
quote=
'"'
apostrophe=
"'"
both=
""'"
lt=
"<"
gt=
">"
amp=
"&"
foo=
""
>
<manifest>
<document>
<name>
sample1
</name>
<description>
a simple invoice
</description>
</document>
</manifest>
</header>
<body>
<!-- sample1.xml is an example of a simple invoice for a small restaurant supplies order -->
<Invoice
xmlns=
"urn:http://schemas.biztalk.org/united_rest_com/yw7sg15x.xml"
>
<Header>
<InvoiceNumber>
01786
</InvoiceNumber>
<InvoiceDate>
2000-03-17
</InvoiceDate>
<!-- March 17th, 2000 -->
<OrderNo>
55377
</OrderNo>
<OrderDate>
2000-03-15
</OrderDate>
<!-- March 15th, 2000 -->
<CustomerPO>
GJ03405
</CustomerPO>
<ShipMethod>
DAVE 1
</ShipMethod>
<ShipDate>
2000-03-17
</ShipDate>
<!-- March 17th, 2000 -->
<CustomerID>
K5211(34)
</CustomerID>
<SalesPersonCode>
23
</SalesPersonCode>
<TaxID>
23
</TaxID>
</Header>
<InvoiceTo>
<Name>
SHIPWRIGHT RESTAURANTS LIMITED
</Name>
<AddressLine>
125 NORTH SERVICE ROAD W
</AddressLine>
<AddressLine>
WESTLAKE ACCESS
</AddressLine>
<City>
NORTH BAY
</City>
<PostCode>
L8B1O5
</PostCode>
<State>
ONTARIO
</State>
<Country>
CANADA
</Country>
</InvoiceTo>
<ShipTo>
<Name/>
<AddressLine>
ATTN: PAULINE DEGRASSI
</AddressLine>
<City/>
<PostCode/>
<State/>
<Country/>
</ShipTo>
<DetailLines>
<DetailLine>
<QuantityShipped>
1
</QuantityShipped>
<UnitOfMeasure>
CS
</UnitOfMeasure>
<PartNumber>
DM 5309
</PartNumber>
<PartDescription>
#1013 12 OZ.MUNICH STEIN
</PartDescription>
<UnitPrice>
37.72
</UnitPrice>
<LineTotal>
37.72
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
6
</QuantityShipped>
<UnitOfMeasure>
DZ
</UnitOfMeasure>
<PartNumber>
ON 6420
</PartNumber>
<PartDescription>
PROVINCIAL DINNER FORK
</PartDescription>
<UnitPrice>
17.98
</UnitPrice>
<LineTotal>
107.88
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
72
</QuantityShipped>
<UnitOfMeasure>
EA
</UnitOfMeasure>
<PartNumber>
JR20643
</PartNumber>
<PartDescription>
PLASTIC HANDLED STEAK KNIFE
</PartDescription>
<UnitPrice>
.81
</UnitPrice>
<LineTotal>
58.32
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
6
</QuantityShipped>
<UnitOfMeasure>
DZ
</UnitOfMeasure>
<PartNumber>
ON 6410
</PartNumber>
<PartDescription>
PROVINCIAL TEASPOONS
</PartDescription>
<UnitPrice>
12.16
</UnitPrice>
<LineTotal>
72.96
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
0
</QuantityShipped>
<UnitOfMeasure>
DZ
</UnitOfMeasure>
<PartNumber>
ON 6411
</PartNumber>
<PartDescription>
PROVINCIAL RD BOWL SPOON
</PartDescription>
<QuantityBackOrdered>
6
</QuantityBackOrdered>
<UnitPrice>
17.98
</UnitPrice>
<LineTotal>
0.00
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
1
</QuantityShipped>
<UnitOfMeasure>
EA
</UnitOfMeasure>
<PartNumber>
DO 3218
</PartNumber>
<PartDescription>
34 OZ DUAL DIAL SCALE AM3218
</PartDescription>
<UnitPrice>
70.00
</UnitPrice>
<DiscountPercentage>
5.0
</DiscountPercentage>
<LineTotal>
66.50
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
1
</QuantityShipped>
<UnitOfMeasure>
CS
</UnitOfMeasure>
<PartNumber>
DM 195
</PartNumber>
<PartDescription>
20 OZ.BEER PUB GLASS
</PartDescription>
<UnitPrice>
55.90
</UnitPrice>
<LineTotal>
55.90
</LineTotal>
</DetailLine>
</DetailLines>
<Totals>
<SubTotal>
399.28
</SubTotal>
<DiscountTotal>
3.50
</DiscountTotal>
<FreightTotal>
23.75
</FreightTotal>
<GSTTotal>
29.61
</GSTTotal>
<ProvTaxTotal>
33.84
</ProvTaxTotal>
<OtherTotal>
33.84
</OtherTotal>
<InvoiceTotal>
486.48
</InvoiceTotal>
</Totals>
</Invoice>
</body>
</biztalk_1>
lib/python/TAL/tests/test1.xml
0 → 100644
View file @
08f2e1f8
<?xml version="1.0" ?>
<html>
<head>
dadada
</head>
<body
xmlns:z=
"http://xml.zope.org/namespaces/tal"
z:define=
"foo as python:1"
>
<h1
z:insert=
"str:This Is The Replaced Title"
>
Title
</h1>
<!-- examples adapted from TemplateAttributeLanguageSyntax -->
<span
z:insert=
"str:here/id"
/>
<p
z:define=
"x as str:template/title; global five as python:2+3"
z:insert=
"text var:x"
/>
<p
z:replace=
"for car in python:['honda', 'subaru', 'acura']"
>
<span
z:replace=
"var:car"
/>
</p>
<!-- more examples -->
<ul
z:insert=
"for car in python:['honda', 'subaru', 'acura']"
>
<li
z:insert=
"var:car"
>
Car Name
</li>
</ul>
<a
href=
"foo"
z:attributes=
"href = python:'http://python.org' "
>
python
</a>
</body>
</html>
lib/python/TAL/tests/test2.xml
0 → 100644
View file @
08f2e1f8
<?xml version="1.0" ?>
<biztalk_1
xmlns=
"urn:schemas-biztalk-org:biztalk:biztalk_1"
>
<header
plain=
"guido"
quote=
'"'
apostrophe=
"'"
both=
""'"
lt=
"<"
gt=
">"
amp=
"&"
foo=
""
>
<manifest>
<document>
<name>
sample1
</name>
<description>
a simple invoice
</description>
</document>
</manifest>
</header>
<body>
<!-- sample1.xml is an example of a simple invoice for a small restaurant supplies order -->
<Invoice
xmlns=
"urn:http://schemas.biztalk.org/united_rest_com/yw7sg15x.xml"
>
<Header>
<InvoiceNumber>
01786
</InvoiceNumber>
<InvoiceDate>
2000-03-17
</InvoiceDate>
<!-- March 17th, 2000 -->
<OrderNo>
55377
</OrderNo>
<OrderDate>
2000-03-15
</OrderDate>
<!-- March 15th, 2000 -->
<CustomerPO>
GJ03405
</CustomerPO>
<ShipMethod>
DAVE 1
</ShipMethod>
<ShipDate>
2000-03-17
</ShipDate>
<!-- March 17th, 2000 -->
<CustomerID>
K5211(34)
</CustomerID>
<SalesPersonCode>
23
</SalesPersonCode>
<TaxID>
23
</TaxID>
</Header>
<InvoiceTo>
<Name>
SHIPWRIGHT RESTAURANTS LIMITED
</Name>
<AddressLine>
125 NORTH SERVICE ROAD W
</AddressLine>
<AddressLine>
WESTLAKE ACCESS
</AddressLine>
<City>
NORTH BAY
</City>
<PostCode>
L8B1O5
</PostCode>
<State>
ONTARIO
</State>
<Country>
CANADA
</Country>
</InvoiceTo>
<ShipTo>
<Name/>
<AddressLine>
ATTN: PAULINE DEGRASSI
</AddressLine>
<City/>
<PostCode/>
<State/>
<Country/>
</ShipTo>
<DetailLines>
<DetailLine>
<QuantityShipped>
1
</QuantityShipped>
<UnitOfMeasure>
CS
</UnitOfMeasure>
<PartNumber>
DM 5309
</PartNumber>
<PartDescription>
#1013 12 OZ.MUNICH STEIN
</PartDescription>
<UnitPrice>
37.72
</UnitPrice>
<LineTotal>
37.72
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
6
</QuantityShipped>
<UnitOfMeasure>
DZ
</UnitOfMeasure>
<PartNumber>
ON 6420
</PartNumber>
<PartDescription>
PROVINCIAL DINNER FORK
</PartDescription>
<UnitPrice>
17.98
</UnitPrice>
<LineTotal>
107.88
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
72
</QuantityShipped>
<UnitOfMeasure>
EA
</UnitOfMeasure>
<PartNumber>
JR20643
</PartNumber>
<PartDescription>
PLASTIC HANDLED STEAK KNIFE
</PartDescription>
<UnitPrice>
.81
</UnitPrice>
<LineTotal>
58.32
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
6
</QuantityShipped>
<UnitOfMeasure>
DZ
</UnitOfMeasure>
<PartNumber>
ON 6410
</PartNumber>
<PartDescription>
PROVINCIAL TEASPOONS
</PartDescription>
<UnitPrice>
12.16
</UnitPrice>
<LineTotal>
72.96
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
0
</QuantityShipped>
<UnitOfMeasure>
DZ
</UnitOfMeasure>
<PartNumber>
ON 6411
</PartNumber>
<PartDescription>
PROVINCIAL RD BOWL SPOON
</PartDescription>
<QuantityBackOrdered>
6
</QuantityBackOrdered>
<UnitPrice>
17.98
</UnitPrice>
<LineTotal>
0.00
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
1
</QuantityShipped>
<UnitOfMeasure>
EA
</UnitOfMeasure>
<PartNumber>
DO 3218
</PartNumber>
<PartDescription>
34 OZ DUAL DIAL SCALE AM3218
</PartDescription>
<UnitPrice>
70.00
</UnitPrice>
<DiscountPercentage>
5.0
</DiscountPercentage>
<LineTotal>
66.50
</LineTotal>
</DetailLine>
<DetailLine>
<QuantityShipped>
1
</QuantityShipped>
<UnitOfMeasure>
CS
</UnitOfMeasure>
<PartNumber>
DM 195
</PartNumber>
<PartDescription>
20 OZ.BEER PUB GLASS
</PartDescription>
<UnitPrice>
55.90
</UnitPrice>
<LineTotal>
55.90
</LineTotal>
</DetailLine>
</DetailLines>
<Totals>
<SubTotal>
399.28
</SubTotal>
<DiscountTotal>
3.50
</DiscountTotal>
<FreightTotal>
23.75
</FreightTotal>
<GSTTotal>
29.61
</GSTTotal>
<ProvTaxTotal>
33.84
</ProvTaxTotal>
<OtherTotal>
33.84
</OtherTotal>
<InvoiceTotal>
486.48
</InvoiceTotal>
</Totals>
</Invoice>
</body>
</biztalk_1>
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