Thanks Ryan

On Wednesday, September 2, 2020 at 7:08:48 PM UTC+2 RjOllos wrote:

> On Wednesday, September 2, 2020 at 2:55:32 AM UTC-7 ozgur....@gmail.com 
> wrote:
>
>> Hi, 
>>
>> I want to attach a docx file as well as image files to a wiki page 
>> programatically but could not find any example code doing this. I found 
>>
>>
>> https://trac.edgewall.org//wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.attachment.IAttachmentManipulator
>>
>> sounds like the right place to start but I was wondering if anyone has 
>> done this and if you could give me some example code.
>>
>> Thank you in advance.
>>
>
> From the command line it can be done using trac-admin:
> https://trac.edgewall.org/wiki/TracAdmin#FullCommandReference
>
> You could use XmlRpcPlugin to remotely add:
> https://trac-hacks.org/wiki/XmlRpcPlugin
> Note that the plulgin is not yet compatible with Trac 1.4.
>
> From plugin code you insert an attachment using the Attachment class:
>
> https://www.edgewall.org/docs/branches-1.4-stable/html/api/trac_attachment.html#trac.attachment.Attachment
>
> - Ryan 
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-dev/f2814970-750d-4944-aab7-b8144fa1301dn%40googlegroups.com.

Reply via email to