luxia--
[Photo.git] / blobbases.py
index c0084c3..964ffe3 100755 (executable)
@@ -20,6 +20,7 @@ from cgi import escape
 from cStringIO import StringIO
 from mimetools import choose_boundary
 import struct
+from warnings import warn
 
 from AccessControl.Permissions import change_images_and_files
 from AccessControl.Permissions import view_management_screens
@@ -487,6 +488,7 @@ class File(Persistent, Implicit, PropertyManager,
         content_type=self._get_content_type(file, self.__name__,
                                             'application/octet-stream')
         self.update_data(file, content_type)
+        notify(ObjectModifiedEvent(self))
 
         if REQUEST:
             message="Saved changes."