Opened 6 years ago

Closed 10 months ago

Last modified 10 months ago

#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 Ryan J Ollos)

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.’~ý(ù5‰kÏh“—D¢)òèˆ
55	ˆHeFÅ*F¿ó·(Ћ3)HŒ¶D£»äý»H›-#kBL&„ŽÑژâsêtM8Ö² žäRql`ªV¡.Á™¶‹8g“
56	£ËZDú)xÄpMQ˜D©dRÌ'˜“Jãft©šUË1§l[‰gVàÕzœ

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by anonymous

I got it working after adding both 'xlsx' and 'xlsm' to Trac mimeview known types, then rebuild the core.


    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
    'application/':                    'xlsm',

comment:2 Changed 6 years ago by Daniel Rolls

Status: newassigned

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 6 years ago by Daniel Rolls

Sorry Wendy I can see you set the property. Can you post the mime_map line from your configuration file please?

comment:4 Changed 2 years ago by Ryan J Ollos

Description: modified (diff)

comment:5 Changed 10 months ago by Ryan J Ollos

Resolution: worksforme
Status: assignedclosed

comment:6 Changed 10 months ago by Ryan J Ollos

Works for me. I didn't even find it necessary to alter the mime_map option with Trac 1.0.16dev.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Daniel Rolls.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.