[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/file/browser/file.py
Fire off a missing object creation event.
Fred L. Drake, Jr.
fdrake at gmail.com
Tue Sep 21 14:48:27 EDT 2004
Log message for revision 27643:
Fire off a missing object creation event.
This should be backported to the ZopeX3-3.0 branch, but I've not yet
decided if it's important enough to generate another release candidate.
Changed:
U Zope3/trunk/src/zope/app/file/browser/file.py
-=-
Modified: Zope3/trunk/src/zope/app/file/browser/file.py
===================================================================
--- Zope3/trunk/src/zope/app/file/browser/file.py 2004-09-20 11:24:38 UTC (rev 27642)
+++ Zope3/trunk/src/zope/app/file/browser/file.py 2004-09-21 18:48:27 UTC (rev 27643)
@@ -18,7 +18,10 @@
from datetime import datetime
+import zope.event
+
from zope.app import content_types
+from zope.app.event import objectevent
from zope.app.file.file import File
from zope.app.i18n import ZopeMessageIDFactory as _
@@ -111,6 +114,7 @@
def update_object(self, data, contenttype):
f = File(data, contenttype)
+ zope.event.notify(objectevent.ObjectCreatedEvent(f))
self.context.add(f)
self.request.response.redirect(self.context.nextURL())
return ''
More information about the Zope3-Checkins
mailing list