> I'm trying to create mimeview plugin, that convert file (not content)
> to HTML in attachment preview.
> With hardcoded file path I have success, but now I don't know how to
> get full-real-absolute path to attachment.
> Args to `render` contains only filename, not attachment object, or
> anything else.
>
> Can anybody help me?-)

I'm not sure I quite understand what you're trying to do... but this
sounds a lot like what I was working on over the weekend.

What do you mean when you say you don't want to convert the content?
I'm not sure if the full path to the attachment would even be
available at this point... and I'm not sure why you'd want the file
name but not the contents of the file if you're trying to preview it.
I'm guessing you're trying to pass the filename to some external
program to generate the preview maybe?

Here's a link to the source for my IHTMLPreviewRenderer that I implemented:
http://trac-hacks.org/browser/scrippetmacro/0.12/scrippets/render.py

Ben

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to