[Checkins] SVN: five.pt/trunk/ Strip off a leading 'file:' source file prefix.
Malthe Borch
mborch at gmail.com
Mon Oct 10 01:51:24 EST 2011
Log message for revision 123037:
Strip off a leading 'file:' source file prefix.
Changed:
U five.pt/trunk/CHANGES.txt
U five.pt/trunk/src/five/pt/engine.py
-=-
Modified: five.pt/trunk/CHANGES.txt
===================================================================
--- five.pt/trunk/CHANGES.txt 2011-10-09 18:21:28 UTC (rev 123036)
+++ five.pt/trunk/CHANGES.txt 2011-10-10 06:51:23 UTC (rev 123037)
@@ -3,6 +3,7 @@
2.2 (unreleased)
~~~~~~~~~~~~~~~~
+
- Update implementation to use component-based template engine
configuration, plugging directly into the Zope Toolkit framework.
Modified: five.pt/trunk/src/five/pt/engine.py
===================================================================
--- five.pt/trunk/src/five/pt/engine.py 2011-10-09 18:21:28 UTC (rev 123036)
+++ five.pt/trunk/src/five/pt/engine.py 2011-10-10 06:51:23 UTC (rev 123037)
@@ -99,6 +99,10 @@
else:
expression_types = cls.expression_types
+ # BBB: Support CMFCore's FSPagetemplateFile formatting
+ if source_file.startswith('file:'):
+ source_file = source_file[5:]
+
template = ChameleonPageTemplate(
text, filename=source_file, keep_body=True,
expression_types=expression_types,
More information about the checkins
mailing list