[Zope3-checkins] CVS: Zope3/src/zope/app/services - zpt.py:1.4
Jim Fulton
jim@zope.com
Mon, 3 Feb 2003 15:57:51 -0500
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv3511
Modified Files:
zpt.py
Log Message:
Disabled macro expansion, because templates don't ahve enough context
to expand macros properly when being edited.
=== Zope3/src/zope/app/services/zpt.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/zpt.py:1.3 Sat Dec 28 12:49:31 2002
+++ Zope3/src/zope/app/services/zpt.py Mon Feb 3 15:57:47 2003
@@ -29,12 +29,14 @@
from zope.pagetemplate.pagetemplate import PageTemplate
from zope.app.pagetemplate.engine import AppPT
from zope.app.interfaces.services.interfaces import IZPTTemplate
+from zope.app.interfaces.index.text import ISearchableText
class ZPTTemplate(AppPT, PageTemplate, Persistent):
__implements__ = IZPTTemplate
contentType = 'text/html'
+ expand = False
source = property(
# get
@@ -62,8 +64,6 @@
return self.pt_render(namespace)
# Adapter for ISearchableText
-
-from zope.app.interfaces.index.text import ISearchableText
tag = re.compile(r"<[^>]+>")
class SearchableText: