[Twisted-Python] templatepath patch

Paul Boehm typo at soniq.net
Fri Oct 4 08:28:35 MDT 2002


compiled templates shouldn't be dumped into cwd:

diff -u -r1.14 template.py
--- template.py 4 Oct 2002 11:38:57 -0000       1.14
+++ template.py 4 Oct 2002 14:27:28 -0000
@@ -245,7 +245,7 @@
         os.stat(compiledTemplatePath)[stat.ST_MTIME] < os.stat(templatePath)[stat.ST_MTIME]):
             compiledTemplate = minidom.parse(templatePath)
             from cPickle import dump
-            dump(compiledTemplate, open(compiledTemplateName, 'wb'), 1)
+            dump(compiledTemplate, open(compiledTemplatePath, 'wb'), 1)
 #            parent = templateRef.parentRef().getObject()
 #            parent.savePickleChild(compiledTemplateName, compiledTemplate)
         else:





More information about the Twisted-Python mailing list