[CMF-checkins] CVS: CMF/CMFCore - FSPageTemplate.py:1.5.2.1
Tres Seaver
tseaver@zope.com
Mon, 11 Mar 2002 07:58:21 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv5473/CMFCore
Modified Files:
Tag: tseaver-tracker_477-branch
FSPageTemplate.py
Log Message:
- Suppressed auto-expansion of customized FSPageTemplates (Tracker #477).
- Refactored FSPageTemplate tests:
o pushed possible import failures down into tests;
o added test for simple customization;
o added test for Tracker #477.
- XXX: Should this policy change (suppressing auto-expansion) be
configurable somehow?
=== CMF/CMFCore/FSPageTemplate.py 1.5 => 1.5.2.1 ===
"""Create a ZODB (editable) equivalent of this object."""
obj = ZopePageTemplate(self.getId(), self._text, self.content_type)
+ obj.expand = 0
obj.write(self.read())
return obj