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

Jim Fulton jim at zope.com
Fri Aug 13 10:22:30 EDT 2004


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


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


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/utility/utility.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/utility/utility.py	2004-08-13 01:33:06 UTC (rev 27092)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/utility/utility.py	2004-08-13 14:22:29 UTC (rev 27093)
@@ -70,6 +70,13 @@
                 registration = stack.active()
                 if registration is not None:
                     key = True, key[1], '', key[3]
+
+                    # 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] = radapters.get(key, ()) + (
                         removeAllProxies(registration.factory), )
 



More information about the Zope3-Checkins mailing list