[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate/tests/input - DTML1.html:1.1.2.3 DTML3.html:1.1.2.3 TeeShop1.html:1.1.2.3 TeeShop2.html:1.1.2.3

Jim Fulton jim@zope.com
Thu, 23 May 2002 14:01:52 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	DTML1.html DTML3.html TeeShop1.html TeeShop2.html 
Log Message:
This all started with wanting to be able to use url;view in a ZPT path. :)

That lead me to:

- Massive traversal refactoring.

  Namespace handling is now centralized in Zope.App.Traversing. 

- ZPT refactoring, including some renaming that touches pretty much everything. :)

  - The application specific ZPT support was moved into
    Zope.App.PageTemplate. 

  - To get page template files (for use in views):

    from Zope.App.PageTemplate import ViewPageTemplateFile

  - Fixed up security so that ZPT expressions only have access to 
    safe builtins and so that modules namespace does imports safely.

  - Got ZPTPage working!

- renaming url to absolute_url and got absolute_url to work in paths.

- Cleaned up the (as yet unused) RestrictedInterpreter module in
  Zope.Security. In particular, changed to use a separate
  RestrictedBuiltins module.



=== Zope3/lib/python/Zope/PageTemplate/tests/input/DTML1.html 1.1.2.2 => 1.1.2.3 ===
   <body>
       <span tal:replace="nothing"> blah </span>
-      <dl tal:condition="context/args">
+      <dl tal:condition="options/content/args">
         <dt>The arguments to this test program were:</dt>
         <dd>
           <ul>
-            <li tal:repeat="arg context/args">
+            <li tal:repeat="arg options/content/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:context/args">No arguments were given.</p>
+      <p tal:condition="not:options/content/args">No arguments were given.</p>
       And thats da trooth.
   </body>
 </html>


=== Zope3/lib/python/Zope/PageTemplate/tests/input/DTML3.html 1.1.2.2 => 1.1.2.3 ===
 <body>
-        <div tal:condition="context/args">
+        <div tal:condition="options/content/args">
           The arguments were:
           <span tal:condition="options/batch/previous_sequence">
             (<span
@@ -26,7 +26,7 @@
               >next end item</span>)
           </span>
         </div>
-        <p tal:condition="not:context/args">
+        <p tal:condition="not:options/content/args">
           No arguments were given.
         </p>
         And I am 100% sure!


=== Zope3/lib/python/Zope/PageTemplate/tests/input/TeeShop1.html 1.1.2.2 => 1.1.2.3 ===
+<html metal:use-macro="options/laf/macros/page">
 <head>
 <title>Zope Stuff</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


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