[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/adapter/adapter.py Added an explanation, of sorts, for a removeAllProxies call.

Jim Fulton jim at zope.com
Fri Aug 13 10:57:36 EDT 2004


Log message for revision 27096:
  Added an explanation, of sorts, for a removeAllProxies call.
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/adapter/adapter.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/adapter/adapter.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/adapter/adapter.py	2004-08-13 14:27:07 UTC (rev 27095)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/adapter/adapter.py	2004-08-13 14:57:36 UTC (rev 27096)
@@ -158,6 +158,13 @@
             for key, stack in stacks.iteritems():
                 registration = stack.active()
                 if registration is not None:
+
+                    # Needs more thought:
+                    # We have to remove the proxy because we're
+                    # storing the value amd we can't store proxies.
+                    # (Why can't we?)  we need to think more about
+                    # why/if this is truly safe
+                    
                     radapters[key] = removeAllProxies(registration.factory)
 
     def adaptersChanged(self, *args):



More information about the Zope3-Checkins mailing list