Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#576 closed enhancement (fixed)

[PATCH] mime renderer support

Reported by: moo Owned by: Peter Kropf
Priority: high Component: GraphvizPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description

render dot files in trac browser

Attachments (1)

graphviz-renderer.patch (1.2 KB) - added by moo 11 years ago.

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by moo

Attachment: graphviz-renderer.patch added

comment:1 Changed 11 years ago by moo

you might want to update GraphvizMacro to GraphvizPlugin or so, as it's not just a macro now.

comment:2 Changed 11 years ago by Peter Kropf

I'm not sure how I can go about testing this patch. Any suggestions?

comment:3 Changed 11 years ago by Peter Kropf

(In [1133]) Added IHTMLPreviewRenderer to the supported interfaces. References #576.

comment:4 Changed 11 years ago by Peter Kropf

Ok, I've figured out a bit more about the IHTMLPreviewRendered interface. More specifically, that I needed to add mimetypes for graphviz files so that they can be rendered via GraphvizMacro. I'm not certain if this is the best method but it seems to work. I'll check in a changeset in a bit.

comment:5 Changed 11 years ago by Peter Kropf

Resolution: fixed
Status: newclosed

(In [1169]) Fixed the IHTMLPreviewRenderer support by adding mimetypes for the graphviz extensions to the MIME_MAP from trac.mimeview.api. Fixes #576.

comment:6 Changed 11 years ago by moo

thanks, and sorry that i didn't visit back the ticket to give u comment. :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Peter Kropf.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.