Modify

Opened 10 years ago

Last modified 9 years ago

#1950 new enhancement

0.11 support patch

Reported by: Dave Gynn Owned by: Christophe de Vienne
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 (2)

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

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Dave Gynn

Attachment: pagetoodt_0.11.patch added

comment:1 Changed 9 years ago by jtgalyon@gmail.com

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 jtgalyon@gmail.com

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 Dave Gynn

Attachment: pagetoodt_0.11b2.patch added

Updated patch, works with 0.11b2

comment:3 Changed 9 years ago by Dave Gynn

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Christophe de Vienne.

Add Comment


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

 
Note: See TracTickets for help on using tickets.