[Zope3-checkins] CVS: Zope3/src/zope/app/services - zpt.py:1.18
Jim Fulton
jim at zope.com
Thu Feb 5 23:13:31 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv7595/src/zope/app/services
Modified Files:
zpt.py
Log Message:
Factored out configuration fields into a separate schema so that
the __parent__ wouldn't be included in edit forms.
=== Zope3/src/zope/app/services/zpt.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/services/zpt.py:1.17 Tue Jan 13 14:32:23 2004
+++ Zope3/src/zope/app/services/zpt.py Thu Feb 5 23:13:31 2004
@@ -29,8 +29,8 @@
import zope.pagetemplate.pagetemplate
import zope.schema
-class IZPTTemplate(zope.app.interfaces.services.registration.IRegisterable):
- """ZPT Templates for use in views
+class IZPTInfo(zope.interface.Interface):
+ """ZPT Template configuration information
"""
contentType = zope.schema.BytesLine(
@@ -47,6 +47,12 @@
expand = zope.schema.Bool(
title=u"Expand macros",
)
+
+class IZPTTemplate(
+ IZPTInfo,
+ zope.app.interfaces.services.registration.IRegisterable):
+ """ZPT Templates for use in views
+ """
def render(context, request, *args, **kw):
"""Render the page template.
More information about the Zope3-Checkins
mailing list