Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#576 closed enhancement (fixed)

[PATCH] mime renderer support

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


render dot files in trac browser

Attachments (1)

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

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by moo

comment:1 Changed 10 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 10 years ago by pkropf

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

comment:3 Changed 10 years ago by pkropf

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

comment:4 Changed 10 years ago by pkropf

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 10 years ago by pkropf

  • Resolution set to fixed
  • Status changed from new to closed

(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 10 years ago by moo

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

Add Comment

Modify Ticket

as closed The owner will remain pkropf.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.