[Zope3-dev] Missing ObjectContentModifiedEvent

Uwe Oestermeier u.oestermeier at iwm-kmrc.de
Tue May 3 07:38:59 EDT 2005


Hi,

I'm working on a versioning system that creates a new version for each
changed file content.
I tried to listen  to
zope.app.event.interfaces.IObjectContentModifiedEvents, 
but unfortunately no such event seems to be generated.

Editing an existing zope.app.file.File via the edit view leads only to an
ObjectModifiedEvent, 
uploading new content produces no object event at all.

Should this be fixed by generating ObjectContentModifiedEvents in both
cases (which I would prefer), 
or should the less informative ObjectModifiedEvent be used? In the later
case, the misleading
IObjectContentModifiedEvent should probably removed from the list of
objectevents.

In general, missing events are difficult to detect and I'm quite sure that
file editing and uploading
are not the only relevant cases (e.g. WebDAV and FTP are other ways to
modify file contents).
Wouldn't it be the best solution to generate an
IObjectContentModifiedEvent in the File._setData method and
not the view classes?

Cheers,
Uwe


________________________________________________________________
Dr. Uwe Oestermeier
Institut für Wissensmedien
Knowledge Media Research Center
Konrad-Adenauer-Str. 40
D-72072 Tuebingen
Germany
u.oestermeier at iwm-kmrc.de
Tel. +49 7071 979-208
Fax +49 7071 979-100



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-dev/attachments/20050503/e6fd32f1/attachment.htm


More information about the Zope3-dev mailing list