[Zope-Checkins] CVS: Zope/lib/python/OFS - SimpleItem.py:1.106
Matthew T. Kromer
matt@zope.com
Tue, 4 Feb 2003 11:38:13 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv17633/lib/python/OFS
Modified Files:
SimpleItem.py
Log Message:
Recode the isinstance check to something that wont crash if arg 1 is not
an extension class
=== Zope/lib/python/OFS/SimpleItem.py 1.105 => 1.106 ===
--- Zope/lib/python/OFS/SimpleItem.py:1.105 Fri Aug 30 16:21:29 2002
+++ Zope/lib/python/OFS/SimpleItem.py Tue Feb 4 11:38:10 2003
@@ -197,7 +197,7 @@
'error_message': error_message,
'error_log_url': error_log_url}
- if isinstance(s, HTML):
+ if getattr(aq_base(s),'isDocTemp',0):
v = s(client, REQUEST, **kwargs)
elif callable(s):
v = s(**kwargs)