[Zope3-checkins] CVS: Zope3/src/zope/app/interface - __init__.py:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Mar 21 12:09:39 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/interface
In directory cvs.zope.org:/tmp/cvs-serv18491/src/zope/app/interface
Modified Files:
__init__.py
Log Message:
Remove all proxies on objects before querying their type.
=== Zope3/src/zope/app/interface/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interface/__init__.py:1.3 Sat Mar 20 17:33:45 2004
+++ Zope3/src/zope/app/interface/__init__.py Sun Mar 21 12:09:39 2004
@@ -22,6 +22,7 @@
from zodbcode.patch import registerWrapper, Wrapper
from zope.interface.interface import InterfaceClass
from zope.interface import Interface
+from zope.proxy import removeAllProxies
class PersistentInterfaceClass(Persistent, InterfaceClass):
@@ -117,6 +118,7 @@
'I4'
"""
+ object = removeAllProxies(object)
object_iro = providedBy(object).__iro__
for iface in object_iro:
More information about the Zope3-Checkins
mailing list