[Zope3-checkins] CVS: Zope3/src/zope/app/services - interface.py:1.4.4.1
Jim Fulton
jim@zope.com
Fri, 2 May 2003 14:56:14 -0400
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv2097/src/zope/app/services
Modified Files:
Tag: interfacegeddon-branch
interface.py
Log Message:
Got unit tests to pass (and made this branch a full branch).
I'll make detailed comments when I merge.
=== Zope3/src/zope/app/services/interface.py 1.4 => 1.4.4.1 ===
--- Zope3/src/zope/app/services/interface.py:1.4 Thu May 1 15:35:34 2003
+++ Zope3/src/zope/app/services/interface.py Fri May 2 14:55:40 2003
@@ -27,11 +27,11 @@
class PersistentInterfaceWrapper(Wrapper):
- def unwrap(self, bases, dict):
- pi = PersistentInterfaceClass(self._obj.__name__, bases, {})
- pi.__dict__.update(dict)
- return pi
+ def unwrap(self):
+ return PersistentInterfaceClass(self._obj.__name__)
def register():
registerWrapper(InterfaceClass, PersistentInterfaceWrapper,
- lambda iface: (iface.__bases__, iface.__dict__))
+ lambda iface: (),
+ lambda iface: iface.__dict__,
+ )