[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - add.py:1.16

Ulrich Eck ueck@net-labs.de
Wed, 26 Mar 2003 08:25:32 -0500


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

Modified Files:
	add.py 
Log Message:
update createAndAdd to send ObjectCreatedEvent in Context of the surrounding Folder


=== Zope3/src/zope/app/browser/form/add.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/browser/form/add.py:1.15	Wed Mar 26 06:56:24 2003
+++ Zope3/src/zope/app/browser/form/add.py	Wed Mar 26 08:25:31 2003
@@ -104,7 +104,7 @@
         if errors:
             raise WidgetsError(*errors)
 
-        publish(content, ObjectCreatedEvent(content))
+        publish(self.context, ObjectCreatedEvent(content))
 
         content = self.add(content)