On 12/04/2009 04:29 PM, Thomas Mortagne wrote: > On Fri, Dec 4, 2009 at 14:27, Thomas Mortagne<[email protected]> > wrote: >> Hi devs, >> >> Currently when you attach or delete a new file on a document it does >> not produce any document related event. Thing is it does modify the >> document but since it bypass XWiki#saveDocument it does not produce >> any event.Whic mean currently to know that an attachment as been added >> you can only listen to upload action event (and it works only if it >> has been done with the UI). >> >> I propose to make attachment modification also produce document >> modification events. >> >> WDYT ?
+1 >> Here is my +1 >> >> -- >> Thomas Mortagne >> > > For the details i propose to make UploadAction call > > context.getWiki().saveDocument > instead of > context.getWiki().getStore().saveXWikiDoc (which make document save > bypass even generation) > > (same for DeleteAttachmentAction) > > say if you think it could be an issue. > Also see http://jira.xwiki.org/jira/browse/XWIKI-1982 -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

