Changeset 686

Show
Ignore:
Timestamp:
04/21/06 07:44:01 (3 years ago)
Author:
cmlenz
Message:

ExcelViewerPlugin:

Support for an addition excel MIME type.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • excelviewerplugin/0.10/tracexcelviewer/__init__.py

    r682 r686  
    2626    implements(IHTMLPreviewRenderer) 
    2727 
     28    MIME_TYPES = ('application/vnd.ms-excel', 'application/excel') 
     29 
    2830    # IHTMLPreviewRenderer methods 
    2931 
    3032    def get_quality_ratio(self, mimetype): 
    31         if have_xrld and mimetype == 'application/vnd.ms-excel'
     33        if have_xrld and mimetype in self.MIME_TYPES
    3234            return 2 
    3335        return 0 
  • excelviewerplugin/0.9/tracexcelviewer/__init__.py

    r682 r686  
    2626    implements(IHTMLPreviewRenderer) 
    2727 
     28    MIME_TYPES = ('application/vnd.ms-excel', 'application/excel') 
     29 
    2830    # IHTMLPreviewRenderer methods 
    2931 
    3032    def get_quality_ratio(self, mimetype): 
    31         if have_xrld and mimetype == 'application/vnd.ms-excel'
     33        if have_xrld and mimetype in self.MIME_TYPES
    3234            return 2 
    3335        return 0