[Zope3-checkins] CVS: Zope3/src/zope/app - _app.py:1.7

Albertas Agejevas alga@codeworks.lt
Fri, 21 Mar 2003 14:29:12 -0500


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

Modified Files:
	_app.py 
Log Message:
Application._request tried to do request.update(form), but there's no
update in any of the request interfaces.  Change that to
request.form.update(form).

The damn thing's got no tests, and we're not in the mood to add some
on late Friday night.  Cheers.


=== Zope3/src/zope/app/_app.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/_app.py:1.6	Tue Feb 11 10:59:28 2003
+++ Zope3/src/zope/app/_app.py	Fri Mar 21 14:29:11 2003
@@ -130,7 +130,9 @@
         request = request(stdin, stdout, env)
         request.setPublication(pub)
         if form:
-            request.update(form)
+            # This requires that request class has an attribute 'form'
+            # (BrowserRequest has, TestRequest hasn't)
+            request.form.update(form)
 
         return request