<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">body{margin-left:10px;margin-right:10px;margin-top:0px;margin-bottom:0px;}</style>
</head>
<body marginleft="10" marginright="10" margintop="0" marginbottom="0">
<font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">Hi,<br>
<br>
I'm working on a versioning system that creates a new version for each changed file content.<br>
I tried to listen &nbsp;to zope.app.event.interfaces.IObjectContentModifiedEvents, <br>
but unfortunately no such event seems to be generated.<br>
<br>
Editing an existing zope.app.file.File via the edit view leads only to an ObjectModifiedEvent, <br>
uploading new content produces no object event at all.<br>
<br>
Should this be fixed by generating ObjectContentModifiedEvents in both cases (which I would prefer), <br>
or should the less informative ObjectModifiedEvent be used? In the later case, the misleading<br>
IObjectContentModifiedEvent should probably removed from the list of objectevents.<br>
<br>
In general, missing events are difficult to detect and I'm quite sure that file editing and uploading<br>
are not the only relevant cases (e.g. WebDAV and FTP are other ways to modify file contents).<br>
Wouldn't it be the best solution to generate an IObjectContentModifiedEvent in the File._setData method and<br>
not the view classes?<br>
<br>
Cheers,<br>
Uwe<br>
<br>
<br>
________________________________________________________________<br>
Dr. Uwe Oestermeier<br>
Institut f&#252;r Wissensmedien<br>
Knowledge Media Research Center<br>
Konrad-Adenauer-Str. 40<br>
D-72072 Tuebingen<br>
Germany<br>
<a href="mailto:u.oestermeier@iwm-kmrc.de">u.oestermeier@iwm-kmrc.de</a><br>
Tel. +49 7071 979-208<br>
Fax +49 7071 979-100<br>
<br>
<br>
</font>
</body></html>