[Zope3-checkins] CVS: Zope3/src/zope/app/services - interface.py:1.3
Jeremy Hylton
jeremy@zope.com
Tue, 28 Jan 2003 16:03:18 -0500
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv2281/zope/app/services
Modified Files:
interface.py
Log Message:
Add explicit register() function to interface module.
Call it when loading tests and starting the zope3 app.
=== Zope3/src/zope/app/services/interface.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/interface.py:1.2 Fri Jan 24 14:14:04 2003
+++ Zope3/src/zope/app/services/interface.py Tue Jan 28 16:03:15 2003
@@ -32,5 +32,6 @@
pi.__dict__.update(dict)
return pi
-registerWrapper(InterfaceClass, PersistentInterfaceWrapper,
- lambda iface: (iface.__bases__, iface.__dict__))
+def register():
+ registerWrapper(InterfaceClass, PersistentInterfaceWrapper,
+ lambda iface: (iface.__bases__, iface.__dict__))