Hi, On 3/16/2010 9:38 AM, Jeroen Baten wrote:
Hello,
When I use the XMLRPC interface from Python I can store a lot of pages, attachments and even convert syntaxes.
But how can I find if some attachment already exists in the wiki to make a link to that attachment and not upload the same attachment over and over again?
Add attachment doesn't have the optional check version as storePage has. I think the only way to do that right now is to get the list of attachments of a page before you start the upload. For that you can use the Attachment[] getAttachments(..) method. The Attachment map contains an 'url' key. You can check the xml-rpc api & model at: - http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-xmlrpc/xwiki-xm... For a more complete model and documented api please check: - http://svn.xwiki.org/svnroot/xwiki/xoffice/trunk/xword/Connectivity/Clients/... We have some missing elements in our xml-rpc documentation on xwiki.org, is this something you could contribute? Thanks, Florin Ciubotaru
kind regards,