[Zope3-checkins] CVS: Zope3/src/zope/app/securitypolicy -
configure.zcml:1.5
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Mar 5 13:38:18 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/securitypolicy
In directory cvs.zope.org:/tmp/cvs-serv11118/src/zope/app/securitypolicy
Modified Files:
configure.zcml
Log Message:
Redfine Role and its security. Make it a utility as well.
=== Zope3/src/zope/app/securitypolicy/configure.zcml 1.4 => 1.5 ===
--- Zope3/src/zope/app/securitypolicy/configure.zcml:1.4 Thu Mar 4 17:42:05 2004
+++ Zope3/src/zope/app/securitypolicy/configure.zcml Fri Mar 5 13:38:17 2004
@@ -16,20 +16,18 @@
alias="zope.products.securitypolicy" />
-
-
<include file="meta.zcml" />
<content class=".permissionroles.PermissionRoles">
<require permission="zope.Security"
attributes="roles rolesInfo"
- interface=".interfaces.IRegisteredObject" />
+ interface="zope.app.interfaces.security.IRegisteredObject" />
</content>
<content class=".rolepermission.RolePermissions">
<require permission="zope.Security"
attributes="permissions permissionsInfo"
- interface=".interfaces.IRegisteredObject" />
+ interface="zope.app.interfaces.security.IRegisteredObject" />
</content>
<adapter factory=".rolepermission.AnnotationRolePermissionManager"
@@ -44,37 +42,37 @@
provides=".interfaces.IPrincipalPermissionManager"
for="zope.app.interfaces.annotation.IAnnotatable" />
- <serviceType id="Roles"
- interface=".interfaces.IRoleService" />
-
- <service serviceType="Roles"
- component=".roleregistry.roleRegistry" />
<!-- protect Roles and Permissions -->
- <content class=".roleregistry.Role">
- <allow interface=".interfaces.IRegisteredObject" />
+ <content class=".role.Role">
+ <allow interface=".interfaces.IRole" />
</content>
- <content class=".role.RoleService">
- <factory id="RoleService"
- permission="zope.ManageServices"
- />
- <require permission="zope.Security"
- interface=".interfaces.IRoleService"
- />
- <require permission="zope.ManageServices"
- interface="zope.app.container.interfaces.IContainer"
- />
+ <content class=".role.PersistentRole">
+ <factory
+ id="zope.security.role.Role"
+ />
+ <implements
+ interface="zope.app.interfaces.services.utility.ILocalUtility"
+ />
+ <implements
+ interface="zope.app.interfaces.annotation.IAttributeAnnotatable"
+ />
+ <require
+ permission="zope.Security"
+ interface=".interfaces.IRole"
+ />
</content>
- <content class=".role.Role">
- <factory />
- <require permission="zope.Security"
- interface=".interfaces.IRole"
- />
+ <content class=".role.RoleRegistration">
+ <require
+ permission="zope.ManageServices"
+ interface="zope.app.interfaces.services.utility.IUtilityRegistration
+ zope.app.container.interfaces.IAddNotifiable
+ zope.app.container.interfaces.IRemoveNotifiable"
+ set_schema="zope.app.interfaces.services.utility.IUtilityRegistration" />
</content>
-
<!-- Include browser package -->
<include package=".browser"/>
@@ -83,6 +81,8 @@
component=".zopepolicy.zopeSecurityPolicy"
/>
+ <role id="zope.Anonymous" title="Everybody"
+ description="All users have this role implicitly" />
<role id="zope.Manager" title="Site Manager" />
<role id="zope.Member" title="Site Member" />
More information about the Zope3-Checkins
mailing list