summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8300da1)
raw | patch | inline | side by side (parent: 8300da1)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 28 Aug 2003 05:15:50 +0000 (05:15 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 28 Aug 2003 05:15:50 +0000 (05:15 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1838 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi/templating.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 95c39cf563ac8b12a2e5d76fadb983ce5455add3..d5a0b9b43d7893e39b98047b285b5d344cd0825b 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- applied CSV fix for python2.3 (sf bug 790363)
- fixed form padding in LHS menu (sf bug 790502)
- fixed upgrading docs for timezones (sf bug 790498)
+- set the content type on page templates (can have XML templates now)
2003-08-08 0.6.0
index 7008d9eec2b1d260e66f6d6df1832e8d36c4873b..55e0b7db1e66732e5ce8bfd7e63c127f1093d5a9 100644 (file)
-import sys, cgi, urllib, os, re, os.path, time, errno
+import sys, cgi, urllib, os, re, os.path, time, errno, mimetypes
from roundup import hyperdb, date, rcsv
from roundup.i18n import _
# compile the template
self.templates[src] = pt = RoundupPageTemplate()
- pt.write(open(src).read())
+ # use pt_edit so we can pass the content_type guess too
+ pt.pt_edit(open(src).read(), mimetypes.guess_type(filename))
pt.id = filename
pt.mtime = time.time()
return pt