Ticket #1950 (new enhancement)

Opened 6 years ago

Last modified 5 years ago

0.11 support patch

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

Description

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

The attached patch provides support for 0.11.

Attachments

pagetoodt_0.11.patch (1.3 kB) - added by dgynn on 08/20/07 19:38:25.
pagetoodt_0.11b2.patch (1.3 kB) - added by dgynn on 03/17/08 01:42:32.
Updated patch, works with 0.11b2

Change History

08/20/07 19:38:25 changed by dgynn

  • attachment pagetoodt_0.11.patch added.

03/16/08 22:30:41 changed 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?

03/16/08 23:44:20 changed 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.

03/17/08 01:42:32 changed by dgynn

  • attachment pagetoodt_0.11b2.patch added.

Updated patch, works with 0.11b2

03/17/08 01:45:00 changed 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/Change #1950 (0.11 support patch)




Change Properties
Action