[Trac-tickets] [The Trac Project] #3390: small fix for
`trac.mimeview.api.convert_content()`
The Trac Project
noreply at edgewall.com
Wed Jul 12 11:03:18 CDT 2006
#3390: small fix for `trac.mimeview.api.convert_content()`
------------------------------------------------------+---------------------
Reporter: Shun-ichi Goto <shunichi.goto at gmail.com> | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: wiki | Version: devel
Severity: normal | Keywords:
------------------------------------------------------+---------------------
`convert_content()` should returns 3 elements of tuple.
Here is a patch against current svn HEAD.
{{{
#!diff
--- trac\mimeview\api.py (revision 891)
+++ trac\mimeview\api.py (local)
@@ -304,7 +304,7 @@
`key`, which can be either a MIME type or a key. Returns a tuple
of
(content, output_mime_type, extension)."""
if not content:
- return ('', 'text/plain;charset=utf-8')
+ return ('', 'text/plain;charset=utf-8', 'txt')
# Ensure we have a MIME type for this content
full_mimetype = mimetype
}}}
--
Ticket URL: <http://trac.edgewall.org/ticket/3390>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list