[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/content - zpt.py:1.4.36.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 21 01:02:48 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/interfaces/content
In directory cvs.zope.org:/tmp/cvs-serv3254/app/interfaces/content

Modified Files:
      Tag: srichter-inlinepython-branch
	zpt.py 
Log Message:
Wrote tests for the interpreter service and the PythonInterpreter.

Fixed bug in secure interpreter in zope.security.

Removed some tests from test_talinterpreter, since it really tested Python
stuff, not TAL specific functionality.


=== Zope3/src/zope/app/interfaces/content/zpt.py 1.4.36.1 => 1.4.36.2 ===
--- Zope3/src/zope/app/interfaces/content/zpt.py:1.4.36.1	Wed Aug 20 20:11:10 2003
+++ Zope3/src/zope/app/interfaces/content/zpt.py	Thu Aug 21 00:02:17 2003
@@ -20,12 +20,8 @@
 from zope.app.i18n import ZopeMessageIDFactory as _
 
 class IZPTPage(Interface):
-    """ZPT Pages are a persistent implementation of Page Templates.
+    """ZPT Pages are a persistent implementation of Page Templates."""
 
-       Note: I introduced some new methods whose functionality is
-             actually already covered by some other methods but I
-             want to start enforcing a common coding standard.
-    """
 
     def setSource(text, content_type='text/html'):
         """Save the source of the page template.
@@ -43,13 +39,17 @@
 
     expand = Bool(
         title=_("Expand macros"),
-        )
+        description=_("Expand Macros so that they all are shown in the "
+                      "code."),
+        default=False,
+        required=True)
 
     evaluateInlineCode = Bool(
         title=_("Evaluate Inline Code"),
         description=_("Evaluate code snippets in TAL. We usually discourage "
                       "people from using this feature."),
-        )
+        default=False,
+        required=True)
 
 
 class IRenderZPTPage(Interface):




More information about the Zope3-Checkins mailing list