[CMF-checkins] CVS: CMF/CMFCore - FSPageTemplate.py:1.18.18.3
Shane Hathaway
shane at zope.com
Wed Dec 10 15:53:54 EST 2003
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv11735
Modified Files:
Tag: CMF-1_4-branch
FSPageTemplate.py
Log Message:
Set the source.xml and source.html attributes using a method
compatible with Python 2.3.
=== CMF/CMFCore/FSPageTemplate.py 1.18.18.2 => 1.18.18.3 ===
--- CMF/CMFCore/FSPageTemplate.py:1.18.18.2 Mon Sep 1 12:02:34 2003
+++ CMF/CMFCore/FSPageTemplate.py Wed Dec 10 15:53:53 2003
@@ -217,8 +217,10 @@
ZScriptHTML_tryParams = ZopePageTemplate.ZScriptHTML_tryParams
-d = FSPageTemplate.__dict__
-d['source.xml'] = d['source.html'] = Src()
+s = Src()
+setattr(FSPageTemplate, 'source.xml', s)
+setattr(FSPageTemplate, 'source.html', s)
+del s
Globals.InitializeClass(FSPageTemplate)
More information about the CMF-checkins
mailing list