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

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


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

Modified Files:
	add.py 
Log Message:
fixed bug in createAndAdd, that did not respect the context of a newly created object


=== Zope3/src/zope/app/browser/form/add.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/form/add.py:1.14	Wed Mar 26 05:43:54 2003
+++ Zope3/src/zope/app/browser/form/add.py	Wed Mar 26 06:56:24 2003
@@ -108,6 +108,8 @@
 
         content = self.add(content)
 
+        adapted = queryAdapter(content, self.schema, content)
+
         for name in self._set_after_add:
             if name in data:
                 try: