[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/DTMLPage - DTMLPage.py:1.3 configure.zcml:1.3
Martijn Faassen
m.faassen@vet.uu.nl
Thu, 25 Jul 2002 18:10:01 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/DTMLPage
In directory cvs.zope.org:/tmp/cvs-serv32308/Zope/App/OFS/Content/DTMLPage
Modified Files:
DTMLPage.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/DTMLPage/DTMLPage.py 1.2 => 1.3 ===
def getSource():
"""Get the source of the page template."""
-
-class SDTMLPage(Schema.Schema):
source = Schema.Str(
id="source",
title="Source",
@@ -64,8 +62,7 @@
class DTMLPage(Persistent):
# XXX Putting IFileContent at the end gives an error!
- __implements__ = IFileContent, IDTMLPage, SDTMLPage, IRenderDTMLPage, \
- IAnnotatable
+ __implements__ = IFileContent, IDTMLPage, IRenderDTMLPage, IAnnotatable
def __init__(self, source=''):
=== Zope3/lib/python/Zope/App/OFS/Content/DTMLPage/configure.zcml 1.2 => 1.3 ===
<require permission="Zope.ManageContent"
interface=".DTMLPage.IDTMLPage" />
<require permission="Zope.View"
- interface=".DTMLPage.SDTMLPage" />
- <require permission="Zope.View"
interface=".DTMLPage.IRenderDTMLPage" />
</content>