[ZPT] CVS: Zope/lib/python/Products/PageTemplates - ZopePageTemplate.py:1.36

Fred L. Drake, Jr. fdrake@acm.org
Fri, 12 Apr 2002 17:40:31 -0400


Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv24610

Modified Files:
	ZopePageTemplate.py 
Log Message:
Change it back -- Casey tells me it should be tolerant of objects derived
from ExtensionClass, and reminded me that the 2.1 version of isinstance()
does not deal with the more general constructs that newer versions of
Python can handle.


=== Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py 1.35 => 1.36 ===
             raise ResourceLockedError, "File is locked via WebDAV"
 
-        if not isinstance(file, StringType): 
+        if type(file) is not StringType:
             if not file: raise ValueError, 'File not specified'
             file = file.read()