[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/
Tightened up permission declarations in many places where there were
Jim Fulton
jim at zope.com
Thu Aug 12 16:46:50 EDT 2004
Log message for revision 27086:
Tightened up permission declarations in many places where there were
too loose.
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/browser/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/ifacemodule/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/servicemodule/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/utilitymodule/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/viewmodule/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/zcmlmodule/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/cache/browser/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/cache/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/errorservice/browser/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/ftp/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/configure.zcml
U Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/browser/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/browser/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/browser/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -29,7 +29,7 @@
<pages
for="zope.app.apidoc.APIDocumentation"
class=".apidoc.APIDocumentationView"
- permission="zope.View">
+ permission="zope.app.apidoc.UseAPIDoc">
<page
name="index.html"
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -31,28 +31,28 @@
<browser:page
for=".ClassModule"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.Menu"
name="menu.html"
template="menu.pt" />
<browser:page
for=".IModuleDocumentation"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.ModuleDetails"
name="index.html"
template="module_index.pt" />
<browser:page
for=".IClassDocumentation"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.ClassDetails"
name="index.html"
template="class_index.pt" />
<browser:page
for=".IFunctionDocumentation"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.FunctionDetails"
name="index.html"
template="function_index.pt" />
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -2,6 +2,11 @@
xmlns="http://namespaces.zope.org/zope"
i18n_domain="zope">
+ <permission
+ id="zope.app.apidoc.UseAPIDoc"
+ title="[zope.app.apidoc.UseAPIDoc] Access Online API documentation"
+ />
+
<class class=".APIDocumentation">
<require
interface="zope.app.container.interfaces.IReadContainer"
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/ifacemodule/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/ifacemodule/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/ifacemodule/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -19,7 +19,7 @@
<browser:page
for="zope.interface.interfaces.IInterface"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.InterfaceDetails"
name="apiindex.html"
template="index.pt"
@@ -35,7 +35,7 @@
<browser:page
for=".InterfaceModule"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".menu.Menu"
name="menu.html"
template="menu.pt"
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/servicemodule/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/servicemodule/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/servicemodule/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -20,7 +20,7 @@
<browser:page
for=".ServiceModule"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.Menu"
name="menu.html"
template="menu.pt"
@@ -28,7 +28,7 @@
<browser:page
for=".Service"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.ServiceDetails"
name="index.html"
template="index.pt"
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/utilitymodule/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/utilitymodule/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/utilitymodule/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -23,14 +23,14 @@
<browser:page
for=".UtilityModule"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.Menu"
name="menu.html"
template="menu.pt" />
<browser:page
for=".Utility"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.UtilityDetails"
name="index.html"
template="index.pt" />
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/viewmodule/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/viewmodule/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/viewmodule/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -34,21 +34,21 @@
<browser:page
for=".ViewModule"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.Menu"
name="menu.html"
template="menu.pt" />
<browser:page
for=".ViewModule"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.SkinLayer"
name="skin_layer.html"
template="skin_layer.pt" />
<browser:page
for=".ViewModule"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
class=".browser.ViewsDetails"
name="index.html"
template="index.pt" />
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/zcmlmodule/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/zcmlmodule/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/zcmlmodule/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -24,14 +24,14 @@
<browser:page
for=".ZCMLModule"
class=".browser.Menu"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
name="menu.html"
template="menu.pt" />
<browser:page
for=".Directive"
class=".browser.DirectiveDetails"
- permission="zope.View"
+ permission="zope.app.apidoc.UseAPIDoc"
name="index.html"
template="index.pt" />
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/cache/browser/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/cache/browser/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/cache/browser/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -19,7 +19,7 @@
<pages
for="zope.app.cache.interfaces.ram.IRAMCache"
class="zope.app.cache.browser.ram.RAMCacheView"
- permission="zope.Public">
+ permission="zope.ManageServices">
<page name="editAction.html" attribute="action" />
<page name="index.html" template="ramedit.pt"
menu="zmi_views" title="Edit"/>
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/cache/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/cache/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/cache/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -26,7 +26,7 @@
/>
<require
- permission="zope.Public"
+ permission="zope.ManageServices"
interface="zope.app.cache.interfaces.ram.IRAMCache"
/>
</content>
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/errorservice/browser/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/errorservice/browser/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/errorservice/browser/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -20,7 +20,7 @@
<pages
for="zope.app.errorservice.interfaces.IErrorReportingService"
- permission="zope.Public"
+ permission="zope.ManageServices"
class=".EditErrorLog">
<page name="index.html" template="error.pt"
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/ftp/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/ftp/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/ftp/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -1,5 +1,13 @@
<configure xmlns='http://namespaces.zope.org/zope'>
+ <!-- Note that the views ehere are public because
+
+ - They are generic
+
+ - Protection is provided by the security proxies around their contexts.
+
+ -->
+
<view
for="zope.app.container.interfaces.IReadContainer"
type="zope.publisher.interfaces.ftp.IFTPRequest"
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/introspector/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -3,10 +3,21 @@
xmlns:browser="http://namespaces.zope.org/browser"
>
+ <permission
+ id="zope.app.introspector.Introspect"
+ title=
+ "[zope.app.introspector.Introspect] Introspect Object Classes and Interfaces"
+ description="
+ Use the object-introspection facility to discover
+ and browse interfaces and classes.
+ "
+ />
+
+
<adapter
for='*'
factory="zope.app.introspector.Introspector"
- permission="zope.View"
+ permission="zope.app.introspector.Introspect"
provides="zope.app.introspector.interfaces.IIntrospector"
/>
@@ -24,7 +35,7 @@
<browser:pages
for="zope.interface.Interface"
- permission="zope.ManageServices"
+ permission="zope.app.introspector.Introspect"
class="zope.app.introspector.browser.IntrospectorView"
>
@@ -42,7 +53,7 @@
<browser:page
name="index.html"
for="zope.interface.interfaces.IInterface"
- permission="zope.View"
+ permission="zope.app.introspector.Introspect"
template="introspector.pt"
class="zope.app.introspector.browser.IntrospectorView"
/>
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/browser/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -11,7 +11,7 @@
<pages
for="zope.app.onlinehelp.interfaces.IOnlineHelpTopic"
- permission="zope.Public"
+ permission="zope.View"
class=".OnlineHelpTopicView"
>
@@ -22,7 +22,7 @@
<page
for="zope.app.onlinehelp.interfaces.IOnlineHelp"
- permission="zope.Public"
+ permission="zope.View"
class=".ContextHelpView"
name="contexthelp.html"
template="contexthelp.pt" />
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/onlinehelp/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -21,7 +21,7 @@
<!-- Setup OnlineHelp Root as a Utility -->
<utility
provides=".interfaces.IOnlineHelp"
- permission="zope.Public"
+ permission="zope.View"
component="zope.app.onlinehelp.help"
name="OnlineHelp" />
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/principalannotation/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -12,7 +12,7 @@
id="zope.app.PrincipalAnnotationService"
/>
<require
- permission="zope.Public"
+ permission="zope.View"
interface=".interfaces.IPrincipalAnnotationService"
/>
</content>
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/browser/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -55,14 +55,14 @@
for="
zope.app.registration.interfaces.INoRegistrationManagerError"
name="index.html"
- permission="zope.Public"
+ permission="zope.ManageServices"
template="../../exception/browser/user.pt"
class="zope.app.exception.browser.user.UserErrorView" />
<page
for="zope.app.registration.interfaces.INoLocalServiceError"
name="index.html"
- permission="zope.Public"
+ permission="zope.ManageServices"
template="../../exception/browser/user.pt"
class="zope.app.exception.browser.user.UserErrorView" />
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml 2004-08-12 20:44:25 UTC (rev 27085)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/configure.zcml 2004-08-12 20:46:50 UTC (rev 27086)
@@ -39,7 +39,7 @@
id = "zope.app.services.RegistrationManager"
title = "Registration Manager" />
<require
- permission="zope.View"
+ permission="zope.ManageServices"
interface="zope.app.container.interfaces.IReadContainer" />
<require
permission="zope.ManageServices"
More information about the Zope3-Checkins
mailing list