[ZPT] CVS: Releases/Zope/lib/python/Products/PageTemplates - PageTemplateFile.py:1.9.16.3
Evan Simpson
evan@zope.com
Wed, 27 Feb 2002 14:13:04 -0500
Update of /cvs-repository/Releases/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv31662
Modified Files:
Tag: Zope-2_5-branch
PageTemplateFile.py
Log Message:
Provide __name__ for constructors.
=== Releases/Zope/lib/python/Products/PageTemplates/PageTemplateFile.py 1.9.16.2 => 1.9.16.3 ===
self._need__name__ = 0
self.__name__ = name
+ else:
+ self.__name__ = os.path.splitext(os.path.split(filename)[-1])[0]
if not os.path.splitext(filename)[1]:
filename = filename + '.zpt'
self.filename = os.path.join(_prefix, filename)