[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService - configure.zcml:1.4

Jim Fulton jim@zope.com
Tue, 19 Nov 2002 18:21:46 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService
In directory cvs.zope.org:/tmp/cvs-serv11180/Services/AuthenticationService

Modified Files:
	configure.zcml 
Log Message:
Fixed some bugs in interface-based security assertions.

These bugs had been obscured by a bug in the configuration machinery
that missed conflicts within a single configuration file. 


=== Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/configure.zcml 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/configure.zcml:1.3	Sat Jul 13 14:26:25 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/configure.zcml	Tue Nov 19 18:21:45 2002
@@ -4,13 +4,27 @@
 <!-- Authentication Service Directives -->
 
 <content class=".AuthenticationService.">
-  <factory id="AuthenticationService" permission="Zope.ManageServices" />
+ 
+    <factory id="AuthenticationService" permission="Zope.ManageServices" />
+
+    <!-- XXX Should you *really* be able to get all this with just the
+         view permission? -->
+    <require
+        permission="Zope.View"
+        interface="Zope.App.Security.IAuthenticationService." />
+    <require
+        permission="Zope.View"
+        interface="Zope.App.OFS.Container.IContainer.IHomogenousContainer" />
     <require
         permission="Zope.View"
-        interface=".AuthenticationService.ILocalAuthenticationService." />
+        attributes="getAllUsers" />
+
     <require
         permission="Zope.ManageServices"
         interface="Zope.App.OFS.Container.IContainer." />
+
+    <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
+
 </content>
 
 
@@ -24,6 +38,7 @@
     <require
         permission="Zope.ManageContent"
         interface=".IUser.IWriteUser" />
+    <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
 </content>