[Zope3-checkins] CVS: Zope3/src/zope/app/content - configure.zcml:1.26.2.1 zpt.py:1.14.4.1

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


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

Modified Files:
      Tag: srichter-inlinepython-branch
	configure.zcml 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/content/configure.zcml 1.26 => 1.26.2.1 ===
--- Zope3/src/zope/app/content/configure.zcml:1.26	Wed Aug 20 14:21:08 2003
+++ Zope3/src/zope/app/content/configure.zcml	Wed Aug 20 20:11:09 2003
@@ -203,7 +203,7 @@
   <require
       permission="zope.ManageContent"
       interface="zope.app.interfaces.content.zpt.IZPTPage"
-      set_attributes="source expand" />
+      set_attributes="source expand evaluateInlineCode" />
 
   <require
       permission="zope.View"


=== Zope3/src/zope/app/content/zpt.py 1.14 => 1.14.4.1 ===
--- Zope3/src/zope/app/content/zpt.py:1.14	Wed Aug  6 10:45:10 2003
+++ Zope3/src/zope/app/content/zpt.py	Wed Aug 20 20:11:09 2003
@@ -53,6 +53,11 @@
 
         self.pt_edit(text.encode('utf-8'), content_type)
 
+    def pt_getEngineContext(self, namespace):
+        context = self.pt_getEngine().getContext(namespace)
+        context.evaluateInlineCode = self.evaluateInlineCode
+        return context
+
     def pt_getContext(wrapped_self, instance, request, **_kw):
         # instance is a View component
         self = removeAllProxies(wrapped_self)




More information about the Zope3-Checkins mailing list