Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3390 closed defect (fixed)

small fix for `trac.mimeview.api.convert_content()`

Reported by: Shun-ichi Goto <shunichi.goto@…> Owned by: Jonas Borgström
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

convert_content() should returns 3 elements of tuple. Here is a patch against current svn HEAD.

  • trac\mimeview\api.py

     
    304304        `key`, which can be either a MIME type or a key. Returns a tuple of
    305305        (content, output_mime_type, extension)."""
    306306        if not content:
    307             return ('', 'text/plain;charset=utf-8')
     307            return ('', 'text/plain;charset=utf-8', 'txt')
    308308
    309309        # Ensure we have a MIME type for this content
    310310        full_mimetype = mimetype

Attachments (0)

Change History (1)

comment:1 by Shun-ichi Goto <shunichi.goto@…>, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in r3623. See also #3581.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.