[Zodb-checkins] CVS: Zope3/src/zope/interface - implementor.py:1.6
Sidnei da Silva
sidnei at x3ng.com.br
Wed Aug 6 18:17:05 EDT 2003
Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv20548/src/zope/interface
Finally got my own mini-geddon.
- Spiced up a bit the Utility service getRegisteredMatching to allow querying by interface and name.
- Added getUtilitiesFor(interface) to the utility service, to allow querying for a list of utilities that provide an interface.
- Made the local and global interface services delegate to the utility service when querying for available interfaces. This is done by querying for utilities that provide IInterface. In the future (read: later this week) this will allow us to have persistent interfaces registered as local utilities, a.k.a. TTW Schema.
- Added tests for all of this, and run the test suite twice to make sure :)
=== Zope3/src/zope/interface/implementor.py 1.5 => 1.6 ===
--- Zope3/src/zope/interface/implementor.py:1.5 Sat May 3 12:36:05 2003
+++ Zope3/src/zope/interface/implementor.py Wed Aug 6 17:16:58 2003
@@ -91,7 +91,7 @@
A component may be returned if it was registered fgor a more
c = self._reg.get(interface)
if c is not None:
More information about the Zodb-checkins