[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage - ZPTPage.py:1.5 configure.zcml:1.7
Martijn Faassen
m.faassen@vet.uu.nl
Thu, 25 Jul 2002 18:09:32 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage
In directory cvs.zope.org:/tmp/cvs-serv32308/Zope/App/OFS/Content/ZPTPage
Modified Files:
ZPTPage.py configure.zcml
Log Message:
Got rid of separate Schema class; just use interfaces now. Updated
Forms and content objects to reflect this change.
=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/ZPTPage.py 1.4 => 1.5 ===
def getSource():
"""Get the source of the page template."""
-
-class SZPTPage(Schema.Schema):
source = Schema.Str(
id="source",
title="Source",
@@ -68,7 +66,7 @@
class ZPTPage(AppPT, PageTemplate, Persistent):
# XXX Putting IFileContent at the end gives an error!
- __implements__ = IFileContent, SZPTPage, IZPTPage, IRenderZPTPage, \
+ __implements__ = IFileContent, IZPTPage, IRenderZPTPage, \
IAnnotatable
def getSource(self):
=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/configure.zcml 1.6 => 1.7 ===
description="A simple, content-based Page Template" />
<require permission="Zope.View"
attributes="content_type __call__" />
- <require permission="Zope.View"
- interface=".ZPTPage.SZPTPage" />
<require permission="Zope.ManageContent"
interface=".ZPTPage.IZPTPage" />
<require permission="Zope.View"