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

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 21 10:13:32 EDT 2003


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

Modified Files:
      Tag: srichter-inlinepython-branch
	zpt.py 
Log Message:
Fixed a bug in Templated Page (due to my changes)

Added global versus local veriable test for zope.security.interpreter

Added a couple of HTMLTALParser tests.


=== Zope3/src/zope/app/content/zpt.py 1.14.4.1 => 1.14.4.2 ===
--- Zope3/src/zope/app/content/zpt.py:1.14.4.1	Wed Aug 20 20:11:09 2003
+++ Zope3/src/zope/app/content/zpt.py	Thu Aug 21 09:13:00 2003
@@ -40,19 +40,26 @@
 
     implements(IZPTPage, IRenderZPTPage)
 
+    # See zope.app.interfaces.content.zpt.IZPTPage
     expand = False
 
+    # See zope.app.interfaces.content.zpt.IZPTPage
+    evaluateInlineCode = False
+
     def getSource(self):
-        '''See IZPTPage'''
+        '''See zope.app.interfaces.content.zpt.IZPTPage'''
         return self.read()
 
     def setSource(self, text, content_type='text/html'):
-        '''See IZPTPage'''
+        '''See zope.app.interfaces.content.zpt.IZPTPage'''
         if not isinstance(text, unicode):
             raise TypeError("source text must be Unicode" , text)
-
         self.pt_edit(text.encode('utf-8'), content_type)
 
+    # See zope.app.interfaces.content.zpt.IZPTPage
+    source = property(getSource, setSource, None,
+                      """Source of the Page Template.""")
+
     def pt_getEngineContext(self, namespace):
         context = self.pt_getEngine().getContext(namespace)
         context.evaluateInlineCode = self.evaluateInlineCode
@@ -83,9 +90,6 @@
         return self.pt_render(namespace)
 
     render = ContextMethod(render)
-
-    source = property(getSource, setSource, None,
-                      """Source of the Page Template.""")
 
 
 class SearchableText:




More information about the Zope3-Checkins mailing list