[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate/tests - sample.py:1.3 simpletestview.py:1.3 test_binding.py:1.7 test_boundpagetemplate.py:1.4 test_simpleviewclass.py:1.3 test_viewzpt.py:1.9 test_zopepythonexpr.py:1.4

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 21 11:19:59 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv8485/src/zope/app/pagetemplate/tests

Modified Files:
	sample.py simpletestview.py test_binding.py 
	test_boundpagetemplate.py test_simpleviewclass.py 
	test_viewzpt.py test_zopepythonexpr.py 
Log Message:
Final HEAD checkin of "Inline Code Support in TAL". For detailed messages 
during the development, see "srichter-inlinepython-branch". I tested the 
code with both, Python 2.2.3 and Python 2.3 and all works fine.

Here an example of what you can do:

  <script type="text/server-python">
    print "Hello World!"
  </script>

and

 <p tal:script="text/server-python">
   print "Hello World!"
 </p>

A more elaborate example would be:

<html><body>
  <script type="text/server-python">
    global x
    x = "Hello World!"
  </script>
  <b tal:content="x" />
</body></html>

This support is currently only available in "Templated Pages" after you 
activate the hook using the "Inline Code" screen.


=== Zope3/src/zope/app/pagetemplate/tests/sample.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/pagetemplate/tests/sample.py:1.2	Wed Dec 25 09:13:06 2002
+++ Zope3/src/zope/app/pagetemplate/tests/sample.py	Thu Aug 21 10:19:28 2003
@@ -11,11 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Sample Component
 
-Revision information: $Id$
+$Id$
 """
-
 from zope.app.pagetemplate import ViewPageTemplateFile
 
 class C:


=== Zope3/src/zope/app/pagetemplate/tests/simpletestview.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/pagetemplate/tests/simpletestview.py:1.2	Wed Dec 25 09:13:06 2002
+++ Zope3/src/zope/app/pagetemplate/tests/simpletestview.py	Thu Aug 21 10:19:28 2003
@@ -11,7 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Simple Test View
 
+$Id$
+"""
 from zope.app.pagetemplate.simpleviewclass import SimpleViewClass
 
 SimpleTestView = SimpleViewClass('testsimpleviewclass.pt')


=== Zope3/src/zope/app/pagetemplate/tests/test_binding.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_binding.py:1.6	Tue Jul  1 13:30:59 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_binding.py	Thu Aug 21 10:19:28 2003
@@ -11,7 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Binding Tests
 
+$Id$
+"""
 import unittest
 
 from zope.app.pagetemplate.tests.testpackage.content \


=== Zope3/src/zope/app/pagetemplate/tests/test_boundpagetemplate.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_boundpagetemplate.py:1.3	Thu May  1 15:35:26 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_boundpagetemplate.py	Thu Aug 21 10:19:28 2003
@@ -11,6 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""Bound Page Template Tests
+
+$Id$
+"""
 import unittest
 
 class Test(unittest.TestCase):


=== Zope3/src/zope/app/pagetemplate/tests/test_simpleviewclass.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_simpleviewclass.py:1.2	Wed Dec 25 09:13:06 2002
+++ Zope3/src/zope/app/pagetemplate/tests/test_simpleviewclass.py	Thu Aug 21 10:19:28 2003
@@ -11,8 +11,11 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-import unittest
+"""Simple View Class Tests
 
+$Id$
+"""
+import unittest
 
 class data: pass
 


=== Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py:1.8	Thu Jul 31 12:48:41 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py	Thu Aug 21 10:19:28 2003
@@ -11,6 +11,10 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""View ZPT Tests
+
+$Id$
+"""
 import unittest
 
 from zope.component import getService


=== Zope3/src/zope/app/pagetemplate/tests/test_zopepythonexpr.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_zopepythonexpr.py:1.3	Thu May  1 15:35:26 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_zopepythonexpr.py	Thu Aug 21 10:19:28 2003
@@ -11,14 +11,12 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-"""
+"""Zope Python Expression Tests
 
-Revision information:
 $Id$
 """
-
 from unittest import TestCase, main, makeSuite
-from zope.testing.cleanup import CleanUp # Base class w registry cleanup
+from zope.testing.cleanup import CleanUp
 
 class Engine:
 




More information about the Zope3-Checkins mailing list