[Zope3-checkins] CVS: Zope3/src/zope/app/browser/dublincore - metadataedit.py:1.5

Anthony Baxter anthony@interlink.com.au
Sat, 2 Aug 2003 04:46:30 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/dublincore
In directory cvs.zope.org:/tmp/cvs-serv19861

Modified Files:
	metadataedit.py 
Log Message:
Editing metadata should send an ObjectAnnotationsModifiedEvent (discovered
during catalog functional tests...)


=== Zope3/src/zope/app/browser/dublincore/metadataedit.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/dublincore/metadataedit.py:1.4	Thu Mar 27 07:51:46 2003
+++ Zope3/src/zope/app/browser/dublincore/metadataedit.py	Sat Aug  2 04:46:24 2003
@@ -18,6 +18,9 @@
 from zope.component import getAdapter
 from zope.app.interfaces.dublincore import IZopeDublinCore
 from datetime import datetime
+from zope.app.event.objectevent import ObjectAnnotationsModifiedEvent
+from zope.app.event import publish
+
 
 __metaclass__ = type
 
@@ -36,6 +39,7 @@
         if 'dctitle' in request:
             dc.title = request['dctitle']
             dc.description = request['dcdescription']
+            publish(self.context, ObjectAnnotationsModifiedEvent(self.context))
             message = "Changed data %s" % datetime.utcnow()
 
         return {