Modify ↓
#9945 closed defect (worksforme)
Does not work on Trac 0.12b
| Reported by: | wendy | Owned by: | Daniel Rolls |
|---|---|---|---|
| Priority: | normal | Component: | ExcelXlstViewerPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.12 |
Description (last modified by )
I installed the plugin and made sure command python -s "import xlrd" working w/o error. Also added mime_map per the wiki page. When I opened a .xlsx file, Trac displays like binary format as shown below.
54 xl/styles.xmlÄXÛnÛ0}°0ôŸ:I/ëÛÅ6 ÀÐØ«bË0]I.~ý(ù5kÏhD¢)òè 55 HeFÅ*F¿ó·(Ð3)H¶D£»äý»H-#kBL&ÑÚâsêtM8Ö² äRql`ªV¡.Á¶8g 56 £ËZDú)xÄpMQD©dRÌ'Jãft©šUË1§l[gVàÕz
Attachments (0)
Change History (6)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
| Status: | new → assigned |
|---|
Did you both set the mime_map property as described in the documentation? There must be a nicer way of doing this in trac 0.12 than editing the Trac source code?
comment:3 Changed 14 years ago by
Sorry Wendy I can see you set the property. Can you post the mime_map line from your configuration file please?
comment:4 Changed 9 years ago by
| Description: | modified (diff) |
|---|
comment:5 Changed 8 years ago by
| Resolution: | → worksforme |
|---|---|
| Status: | assigned → closed |
comment:6 Changed 8 years ago by
Works for me. I didn't even find it necessary to alter the mime_map option with Trac 1.0.16dev.
Note: See
TracTickets for help on using
tickets.



I got it working after adding both 'xlsx' and 'xlsm' to Trac mimeview known types, then rebuild the core.
Trac-0.12.2/trac/mimeview/api.py KNOWN_MIME_TYPES = { 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx', 'application/vnd.ms-excel.sheet.macroEnabled.12': 'xlsm',