[Zope3-checkins] CVS: Zope3/src/zope/proxy/context - __init__.py:1.5
Philipp von Weitershausen
philikon@philikon.de
Wed, 9 Apr 2003 07:36:22 -0400
Update of /cvs-repository/Zope3/src/zope/proxy/context
In directory cvs.zope.org:/tmp/cvs-serv18535/src/zope/proxy/context
Modified Files:
__init__.py
Log Message:
Commented a test for ContextDescriptors in old-style instances.
This test was way too expensive and failed on objects that don't
have __class__ attributes.
This is really Jim checking this in,
=== Zope3/src/zope/proxy/context/__init__.py 1.4 => 1.5 ===
--- Zope3/src/zope/proxy/context/__init__.py:1.4 Tue Apr 8 08:21:38 2003
+++ Zope3/src/zope/proxy/context/__init__.py Wed Apr 9 07:36:21 2003
@@ -45,17 +45,18 @@
# Don't wrap basic objects
return _ob
- if type(_ob.__class__) is ClassType:
- # We have an instance of a classic class.
- # This isn't *too* bad in itself, but we're going to make sure that
- # it doesn't have any ContextDescriptor members.
- cls = _ob.__class__
- for name, member in inspect.getmembers(cls):
- if isinstance(member, ContextDescriptor):
- raise TypeError("Class %s is a classic class, but has a"
- " ContextDescriptor member '%s'. This member"
- " will not work properly." %
- (cls, name))
+## if type(_ob.__class__) is ClassType:
+## # We have an instance of a classic class.
+## # This isn't *too* bad in itself, but we're going to make sure that
+## # it doesn't have any ContextDescriptor members.
+## cls = _ob.__class__
+
+## for name, member in inspect.getmembers(cls):
+## if isinstance(member, ContextDescriptor):
+## raise TypeError("Class %s is a classic class, but has a"
+## " ContextDescriptor member '%s'. This member"
+## " will not work properly." %
+## (cls, name))
if type(_ob) is Proxy:
# insert into proxies