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

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Aug 20 21:11:41 EDT 2003


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

Modified Files:
      Tag: srichter-inlinepython-branch
	zpt.py 
Log Message:
Hooked up the new TAL script support to Templated Pages. The support has to
be manually activated on a separate page (as requested by __gotcha).

Also, currently we only have support for the "text/server-python" type. 
Later we might want to add other languages too.

TO DO:

  - tests

  - documentation



=== Zope3/src/zope/app/interfaces/content/zpt.py 1.4 => 1.4.36.1 ===
--- Zope3/src/zope/app/interfaces/content/zpt.py:1.4	Thu Apr 10 05:34:29 2003
+++ Zope3/src/zope/app/interfaces/content/zpt.py	Wed Aug 20 20:11:10 2003
@@ -11,11 +11,11 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Templated Page Content Component Interfaces
+
 $Id$
 """
-
-import zope.schema
+from zope.schema import SourceText, Bool
 from zope.interface import Interface, Attribute
 from zope.app.i18n import ZopeMessageIDFactory as _
 
@@ -36,14 +36,21 @@
     def getSource():
         """Get the source of the page template."""
 
-    source = zope.schema.SourceText(
-        title=_(u"Source"),
-        description=_(u"""The source of the page template."""),
+    source = SourceText(
+        title=_("Source"),
+        description=_("The source of the page template."),
         required=True)
 
-    expand = zope.schema.Bool(
-        title=_(u"Expand macros"),
+    expand = Bool(
+        title=_("Expand macros"),
         )
+
+    evaluateInlineCode = Bool(
+        title=_("Evaluate Inline Code"),
+        description=_("Evaluate code snippets in TAL. We usually discourage "
+                      "people from using this feature."),
+        )
+
 
 class IRenderZPTPage(Interface):
 




More information about the Zope3-Checkins mailing list