[Zope3-dev] Code review request

Garrett Smith garrett at mojave-corp.com
Fri May 14 19:55:38 EDT 2004


I just added a removeAllProxies to fix a UnpickleableError that could 
occur at times when a component registration status was changed. I'm 
concerned that this may be covering up the real bug, still lurking.

Could someone who's familiar with this code take a look at this change?

  -- Garrett


Modified: Zope3/trunk/src/zope/app/adapter/adapter.py
===================================================================
--- Zope3/trunk/src/zope/app/adapter/adapter.py	2004-05-14 22:25:11 UTC 
(rev 24702)
+++ Zope3/trunk/src/zope/app/adapter/adapter.py	2004-05-14 23:41:08 UTC 
(rev 24703)
@@ -161,7 +161,8 @@
              for key, stack in stacks.iteritems():
                  registration = stack.active()
                  if registration is not None:
-                    radapters[key] = registration.factory
+                    from zope.proxy import removeAllProxies
+                    radapters[key] = removeAllProxies(registration.factory)





More information about the Zope3-dev mailing list