[Zope3-checkins] CVS: Zope3/src/zope/app/services - interface.zcml:1.1 configure.zcml:1.40 interface.py:1.7

Jeremy Hylton jeremy@zope.com
Sun, 22 Jun 2003 16:23:57 -0400


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv18882/src/zope/app/services

Modified Files:
	configure.zcml interface.py 
Added Files:
	interface.zcml 
Log Message:
Update LocalInterfaceService to implement items() and use new tests.
Add interface with security assertions.


=== Added File Zope3/src/zope/app/services/interface.zcml ===
<zopeConfigure xmlns="http://namespaces.zope.org/zope">

<content class=".interface.LocalInterfaceService">
  <factory
      id="zope.app.services.LocalInterfaceService"
      permission="zope.ManageServices"
      />
  <require
      permission="zope.ManageServices"
      interface="zope.app.interfaces.component.IInterfaceService"
      />
</content>

</zopeConfigure>


=== Zope3/src/zope/app/services/configure.zcml 1.39 => 1.40 ===
--- Zope3/src/zope/app/services/configure.zcml:1.39	Sun Jun 22 10:01:44 2003
+++ Zope3/src/zope/app/services/configure.zcml	Sun Jun 22 16:23:26 2003
@@ -566,5 +566,7 @@
   permission="zope.ManageContent"
   />
 
+<!-- Local Interface Service -->
+<include file="interface.zcml" />
 
 </zopeConfigure>


=== Zope3/src/zope/app/services/interface.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/services/interface.py:1.6	Sun Jun 22 14:59:59 2003
+++ Zope3/src/zope/app/services/interface.py	Sun Jun 22 16:23:26 2003
@@ -78,3 +78,9 @@
         # Return the ids of the interfaces that match the search criteria.
         next = getNextService(self, Interfaces)
         return next.searchInterfaceIds(search_string, base)
+
+    def items(self, search_string="", base=None):
+        # Return id, interface pairs for all items matching criteria.
+        next = getNextService(self, Interfaces)
+        return next.items(search_string, base)
+