Ticket #10431 (new defect)

Opened 8 months ago

Last modified 8 months ago

xfig fig show in trac

Reported by: ghuang Assigned to: k0s
Priority: normal Component: ImageTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (Last modified by rjollos)

We usually use xfig edit block diagram or some other figures The format of that .fig does not support by [[Image ...]] natively. But xfig have a function called fig2dev can convert the fig to other format. So I write this simple python code to do the conversion on the fly, that means I don't have to edit then convert then upload, just edit and upload. Another important part is the uploaded file is the source file, which we can still edit it later.

to deal with the image input format wiki:something:filename, I copied the source code from macros.py. but I don't understand the get_resource_url, it always return with 'attachment' instead of 'attachments', the later exist in my file structure. so I change it manually.

Somebody please correct it for me.

attached is the source for the plugin

Attachments

xfig.py (4.4 kB) - added by ghuang on 10/04/12 20:30:26.

Change History

10/04/12 20:30:26 changed by ghuang

  • attachment xfig.py added.

10/04/12 21:02:47 changed by rjollos

  • description changed.

Add/Change #10431 (xfig fig show in trac)




Change Properties
Action