[Zope3-checkins] CVS: Zope3/src/zope/app/services - interface.py:1.7.4.1
Fred L. Drake, Jr.
fred@zope.com
Mon, 23 Jun 2003 18:08:31 -0400
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv24536/src/zope/app/services
Modified Files:
Tag: fdrake-zconfig-in-zope-3-branch
interface.py
Log Message:
Support ZConfig in Zope 3.
=== Zope3/src/zope/app/services/interface.py 1.7 => 1.7.4.1 ===
--- Zope3/src/zope/app/services/interface.py:1.7 Sun Jun 22 16:23:26 2003
+++ Zope3/src/zope/app/services/interface.py Mon Jun 23 18:08:00 2003
@@ -42,11 +42,12 @@
def unwrap(self):
return PersistentInterfaceClass(self._obj.__name__)
-def register(): # XXX has been refactored on a branch
- registerWrapper(InterfaceClass, PersistentInterfaceWrapper,
- lambda iface: (),
- lambda iface: iface.__dict__,
- )
+
+registerWrapper(InterfaceClass, PersistentInterfaceWrapper,
+ lambda iface: (),
+ lambda iface: iface.__dict__,
+ )
+
class LocalInterfaceService(object):
"""I need a doc string."""
@@ -83,4 +84,3 @@
# Return id, interface pairs for all items matching criteria.
next = getNextService(self, Interfaces)
return next.items(search_string, base)
-