[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage - zptpage.zcml:1.1.2.4
Gary Poster
garyposter@earthlink.net
Thu, 2 May 2002 13:18:19 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage
In directory cvs.zope.org:/tmp/cvs-serv28126/lib/python/Zope/App/OFS/Content/ZPTPage
Modified Files:
Tag: Zope-3x-branch
zptpage.zcml
Log Message:
Several interfaces divided up into readers (getters) and writers (setters), then used in the zcml for permissions. Some small changes in the local ServiceManager to deal with the new security a bit better, hopefully. Fixed Image enough so that you can upload one, but I'm getting a server buffer error when I try to view it. The change to ZMIViewUtility I'm not sure of, but it made sense to me.
You can now add, edit, and view significantly more of the content since the security changes.
=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/zptpage.zcml 1.1.2.3 => 1.1.2.4 ===
<security:protectClass name=".ZPTPage."
- permission_id="Zope.View" />
+ permission_id="Zope.View">
+ <security:protect
+ names="_cook, pt_render"
+ permission_id="Zope.View" />
+ <security:protect
+ interface="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage"
+ permission_id="Zope.ManageContent" />
+ </security:protectClass>
<!-- tabs for ZPT Page -->
<zmi:tabs for=".ZPTPage.IZPTPage.">
- <zmi:tab label="View" action=""/>
<zmi:tab label="Edit" action="edit;view"/>
+ <zmi:tab label="View" action=""/>
<zmi:tab label="Role Permissions" action="RolePermissionsManagement;view"/>
</zmi:tabs>