[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate/tests/input - CheckNotExpression.html:1.1.2.1 CheckNothing.html:1.1.2.1 CheckPathAlt.html:1.1.2.1 CheckPathNothing.html:1.1.2.1 CheckWithXMLHeader.html:1.1.2.1 DTML1.html:1.1.2.1 DTML3.html:1.1.2.1 GlobalsShadowLocals.html:1.1.2.1 Loop1.html:1.1.2.1 StringExpression.html:1.1.2.1 TeeShop1.html:1.1.2.1 TeeShop2.html:1.1.2.1 TeeShopLAF.html:1.1.2.1

Fred Drake Jr fdrake@acm.org
Mon, 19 Nov 2001 19:02:02 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate/tests/input
In directory cvs.zope.org:/tmp/cvs-serv3722/input

Added Files:
      Tag: Zope-3x-branch
	CheckNotExpression.html CheckNothing.html CheckPathAlt.html 
	CheckPathNothing.html CheckWithXMLHeader.html DTML1.html 
	DTML3.html GlobalsShadowLocals.html Loop1.html 
	StringExpression.html TeeShop1.html TeeShop2.html 
	TeeShopLAF.html 
Log Message:
The input & expected output files.

=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/CheckNotExpression.html ===
<html>
<head></head>
<body>
<div tal:content="not:python:0"></div>
<div tal:content="not:python:1"></div>
<div tal:content="not: python:1"></div>
<div tal:content="not:python:range(1,20)"></div>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/CheckNothing.html ===
<html>
<body>
<head>
   <title tal:content="nothing">Hello World!</title>
</head>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/CheckPathAlt.html ===
<html>
<body>
   <div tal:define="x string:X;nil string:">
   <p tal:content="x">1</p>
   <p tal:content="x | nil">2</p>
   <p tal:content="python:nil or x">3</p>
   <p tal:content="y/z | x">4</p>
   <p tal:content="y/z | x | nil">5</p>

   <p tal:attributes="name nil">Z</p>
   <p tal:attributes="name y/z | nil">Z</p>
   <p tal:attributes="name y/z | nothing">Z</p>

   <p tal:on-error="python:str(error.value)" tal:content="a/b | c/d">Z</p>
   </div>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/CheckPathNothing.html ===
<html>
<body>
<head>
   <title tal:content="path:nothing">Hello World!</title>
</head>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/CheckWithXMLHeader.html ===
<?xml version="1.0" ?>
<html>
<body tal:content="string:Hello!">
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/DTML1.html ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal">
  <head><title>Test of documentation templates</title></head>
  <body>
      <span tal:replace="nothing"> blah </span>
      <dl tal:condition="here/args">
        <dt>The arguments to this test program were:</dt>
        <dd>
          <ul>
            <li tal:repeat="arg here/args">
              Argument number <span tal:replace="arg/num">99</span>
              is <span tal:replace="arg/arg">default</span>
            </li>
          </ul>
        </dd>
      </dl>
      <p tal:condition="not:here/args">No arguments were given.</p>
      And thats da trooth.
  </body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/DTML3.html ===
<head><title>Test of documentation templates</title></head>
<body>
        <div tal:condition="here/args">
          The arguments were:
          <span tal:condition="options/batch/previous_sequence">
            (<span
              tal:replace="options/batch/previous_sequence_start_item"
              >previous start item</span>-<span
              tal:replace="options/batch/previous_sequence_end_item"
              >previous end item</span>)
          </span>
          <dl>
            <span tal:repeat="arg options/batch">
              <dt><span tal:replace="arg">??</span>.</dt>
              <dd>Argument <span tal:define="num arg/num"
                                 tal:replace="string: $num"
                  >99</span> was <span tal:replace="arg"
                  >??</span></dd>
            </span>
          </dl>
          <span tal:condition="options/batch/next_sequence">
            (<span
              tal:replace="options/batch/next_sequence_start_item"
              >next start item</span>-<span
              tal:replace="options/batch/next_sequence_end_item"
              >next end item</span>)
          </span>
        </div>
        <p tal:condition="not:here/args">
          No arguments were given.
        </p>
        And I am 100% sure!
</body>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/GlobalsShadowLocals.html ===
<html tal:define="global x python:1">
<head></head>
<body>
  <div tal:define="x python:2">
    <span tal:content="x">Should be 2 here!</span>
  </div>
  <div>
    <span tal:content="x">Should be 1 here!</span>
  </div>
  <div tal:define="global x python:3">
    <span tal:content="x">Should be 3 here!</span>
  </div>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/Loop1.html ===
<html>
<head>
<title>Loop doc</title>
</head>
<body>
<p>Choose your type:</p>
<ul>
  <li tal:repeat="type python:'digital', 'analog', 'organic'">
  <a href="dummy" tal:attributes="href string:/mach/$type">
  <span tal:replace="repeat/type/number">1</span>.
  <span tal:replace="type">selection</span></a>
  </li>
</ul>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/StringExpression.html ===
<html>
<body>
<head>
   <title tal:content="string:Hello World!">This is the title</title>
</head>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/TeeShop1.html ===
<html metal:use-macro="container/laf/macros/page">
<head>
<title>Zope Stuff</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/common.css">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#0000CC" align="center"> 
    <td> 
      <table width="200" border="0" cellspacing="0" cellpadding="0">
        <tr bgcolor="#FFFFFF"> 
          <td><img src="/images/lside.gif" width="52" height="94"><img src="/images/swlogo.gif" width="150" height="89"><img src="/images/rside.gif" width="52" height="94"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr align="center"> 
    <td width="25%" class="boldbodylist">apparel</td>
    <td width="25%" class="boldbodylist">mugs</td>
    <td width="25%" class="boldbodylist">toys</td>
    <td width="25%" class="boldbodylist">misc</td>
  </tr>
</table>
<br>
<br>
<div metal:fill-slot="body">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td bgcolor="#0000CC">
      <table width="100%" border="0" cellspacing="1" cellpadding="3">
        <tr bgcolor="#FFFFFF" align="center"> 
          <td><img src="/images/welcome.gif" width="293" height="28"></td>
        </tr>
        <tr bgcolor="#FFFFFF" align="center" valign="top"
		    tal:repeat="product options/getProducts"> 
          <td> 
            <table width="100%" border="0" cellspacing="0" cellpadding="6">
              <tr> 
                <td colspan="2" class="bodylist" height="200" valign="top"><b>Description: 
                  </b><span tal:replace="product/description">This is the tee for those who LOVE Zope. Show your heart 
                  on your tee.</span></td>
                <td align="right" width="1%" rowspan="2"> 
                  <p><img src="/images/smlatee.jpg" width="200" height="200"
				          tal:attributes="src string:/images/${product/image}"></p>
                </td>
              </tr>
              <tr> 
                <td class="bodylist"><img src="images/clear.gif" width="150" height="10"></td>
                  <td class="bodylist"><b>Price</b>:<span tal:replace="product/price">12.99</span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr bgcolor="#FFFFFF" align="center" valign="top">
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="6">
              <tr> 
                <td align="center"><img src="images/buttons/submit.gif" width="87" height="30"></td>
                <td align="center"><img src="images/buttons/cancel.gif" width="87" height="30"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</div>
<p>&nbsp;</p><table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
  <tr > 
    <td align="center" bgcolor="#FFFFFF" class="bodylist"> Copyright © 2000 <a href="http://www.4-am.com">4AM 
      Productions, Inc.</a>. All rights reserved. <br>
      Questions or problems should be directed to <a href="mailto:webmaster@teamzonline.com"> 
      the webmaster</a>, 254-412-0846. </td>
  </tr>
  <tr> 
    <td align="center"><img src="/images/zopelogos/buildzope.gif" width="54" height="54"></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/TeeShop2.html ===
<html metal:use-macro="container/laf/macros/page">
<div metal:fill-slot="body">
Body
</div>
</html>


=== Added File Zope3/lib/python/Zope/PageTemplate/tests/input/TeeShopLAF.html ===
<html metal:define-macro="page">
<head>
<title>Zope Stuff</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/common.css">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#0000CC" align="center"> 
    <td> 
      <table width="200" border="0" cellspacing="0" cellpadding="0">
        <tr bgcolor="#FFFFFF"> 
          <td><img src="/images/lside.gif" width="52" height="94"><img src="/images/swlogo.gif" width="150" height="89"><img src="/images/rside.gif" width="52" height="94"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr align="center"> 
    <td width="25%" class="boldbodylist">apparel</td>
    <td width="25%" class="boldbodylist">mugs</td>
    <td width="25%" class="boldbodylist">toys</td>
    <td width="25%" class="boldbodylist">misc</td>
  </tr>
</table>
<br>
<br>
<div metal:define-slot="body">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td bgcolor="#0000CC">
      <table width="100%" border="0" cellspacing="1" cellpadding="3">
        <tr bgcolor="#FFFFFF" align="center"> 
          <td><img src="/images/welcome.gif" width="293" height="28"></td>
        </tr>
        <tr bgcolor="#FFFFFF" align="center" valign="top"> 
          <td> <br>
            <table width="100%" border="0" cellspacing="0" cellpadding="6">
              <tr> 
                <td>This is the tee for those who LOVE Zope. Show your heart on 
                  your tee.</td>
                <td align="right" width="1%"> 
                  <p><img src="/images/smlatee.jpg" width="200" height="200"></p>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</div>
<br><br>
<table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
  <tr> 
    <td align="center" bgcolor="#FFFFFF" class="bodylist">
      Copyright &copy; 2000 
      <a href="http://www.4-am.com">4AM Productions, Inc.</a>.
      All rights reserved. <br>
      Questions or problems should be directed to
      <a href="mailto:webmaster@teamzonline.com">the webmaster</a>,
      254-412-0846.</td>
  </tr>
  <tr> 
    <td align="center"><img src="/images/zopelogos/buildzope.gif" width="54" height="54"></td>
  </tr>
</table>
</body>
</html>