[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - Proxy.py:1.1.2.5

Jeremy Hylton jeremy@zope.com
Wed, 17 Apr 2002 19:00:26 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Security
In directory cvs.zope.org:/tmp/cvs-serv28629

Modified Files:
      Tag: SecurityProxy-branch
	Proxy.py 
Log Message:
Add __str__ to proxy


=== Zope3/lib/python/Zope/Security/Proxy.py 1.1.2.4 => 1.1.2.5 ===
 
-import types
-
-descr_type = type(type.__call__)
-method_wrapper = type("abc".lower)
-
 class Proxy:
     def __init__(self, object, checker=None):
         self.object = object
 
     def __repr__(self):
         return repr(self.object)
+
+    def __str__(self):
+        return str(self.object)
 
     def __call__(self, *args, **kw):
         return Proxy(self.object(*args, **kw))