[CMF-checkins] CVS: CMF/CMFStaging - staging_utils.py:1.2

Ken Manheimer klm at zope.com
Sun Apr 4 20:27:21 EDT 2004


Update of /cvs-repository/CMF/CMFStaging
In directory cvs.zope.org:/tmp/cvs-serv28346

Modified Files:
	staging_utils.py 
Log Message:
getProxyTarget(): Didn't handle the case where the object is a
non-reference proxy, and that discrimination needs to be handled in the
caller, so this routine is defunct pushing up daisies grim and gone.  Nuff
said.


=== CMF/CMFStaging/staging_utils.py 1.1 => 1.2 ===
--- CMF/CMFStaging/staging_utils.py:1.1	Mon Oct 27 15:21:53 2003
+++ CMF/CMFStaging/staging_utils.py	Sun Apr  4 20:27:20 2004
@@ -59,15 +59,6 @@
     return d.get('_Proxy__target', obj)
 
 
-def getProxyTarget(obj):
-    """Returns the target of a proxy, with the target wrapped in acquisition.
-
-    If the argument is not a proxy, an error will occur.
-    """
-    ref = obj.__dict__["_Proxy__reference"]
-    return ref.getTarget(obj)
-    
-
 def getProxyReference(obj):
     """Returns the reference that created a proxy.
 




More information about the CMF-checkins mailing list