On Dec 4, 2009, at 2:27 PM, Thomas Mortagne 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 ? > > Here is my +1
+1 I think that right now we consider the Document as: content + objects + class + attachments Maybe we should have both Document events but also content events + object events + class events + attachment events. We can do that later. The reason would be for listeners who want more specific events since otherwise it's hard to know what's changed if you only receive a Doc event. Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

