Opened 9 years ago

Last modified 9 years ago

#1950 new enhancement

0.11 support patch

Reported by: dgynn Owned by: cdevienne
Priority: normal Component: PageToOdtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


The plugin does not work with 0.11 due to the changes in Formatter.

The attached patch provides support for 0.11.

Attachments (2)

pagetoodt_0.11.patch (1.3 KB) - added by dgynn 9 years ago.
pagetoodt_0.11b2.patch (1.3 KB) - added by dgynn 9 years ago.
Updated patch, works with 0.11b2

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by dgynn

comment:1 Changed 9 years ago by jasong

I applied the patch but received this in the log:

2008-03-16 16:22:00,725 Trac[api] WARNING: HTML preview using <tracpygments.PygmentsRenderer object at 0x8f1d24c> failed (No Pygments lexer found for mime-type 'application/vnd.oasis.opendocument.text'.)

What do I need for Pygments?

comment:2 Changed 9 years ago by jasong

I removed TracPygments but this still does not work and I get the following:

2008-03-16 17:38:43,339 Trac[main] DEBUG: Dispatching <Request "GET u'/browser/ads/python-consulting_draft.odt'">
2008-03-16 17:38:43,369 Trac[chrome] DEBUG: Prepare chrome data for request
2008-03-16 17:38:43,398 Trac[browser] DEBUG: Rendering preview of node python-consulting_draft.odt@None with mime-type application/vnd.oasis.opendocument.text; charset=iso-8859-15
2008-03-16 17:38:43,421 Trac[api] DEBUG: Trying to render HTML preview using PlainTextRenderer [lineno]
2008-03-16 17:38:43,422 Trac[api] DEBUG: Binary data; no preview available
2008-03-16 17:38:43,423 Trac[session] DEBUG: Retrieving session for ID u'jasong'
2008-03-16 17:38:44,040 Trac[main] DEBUG: 64 unreachable objects found.

Changed 9 years ago by dgynn

Updated patch, works with 0.11b2

comment:3 Changed 9 years ago by dgynn

I've updated the patch to work with the current (0.11b2) release and the API should be stable now.

jasong - This plugin doesn't help with what you are trying to do. This plugin renders wiki pages as .odt files. You are trying to preview an .odt file from your SVN repository.

Add Comment

Modify Ticket

as new The owner will remain cdevienne.

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

Note: See TracTickets for help on using tickets.