[Checkins] SVN: grokcore.view/trunk/src/grokcore/view/templatereg.py Ignore .cache files when looking up template dirs.
Uli Fouquet
uli at gnufix.de
Wed Feb 25 05:00:54 EST 2009
Log message for revision 97240:
Ignore .cache files when looking up template dirs.
Changed:
U grokcore.view/trunk/src/grokcore/view/templatereg.py
-=-
Modified: grokcore.view/trunk/src/grokcore/view/templatereg.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/templatereg.py 2009-02-25 09:59:15 UTC (rev 97239)
+++ grokcore.view/trunk/src/grokcore/view/templatereg.py 2009-02-25 10:00:54 UTC (rev 97240)
@@ -41,6 +41,9 @@
for template_file in os.listdir(template_dir):
if template_file.startswith('.') or template_file.endswith('~'):
continue
+ if template_file.endswith('.cache'):
+ # chameleon creates '<tpl_name>.cache' files on the fly
+ continue
template_name, extension = os.path.splitext(template_file)
extension = extension[1:] # Get rid of the leading dot.
More information about the Checkins
mailing list