[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - Test.py:1.40.66.3

Ken Manheimer klm at zope.com
Wed Mar 10 13:39:52 EST 2004


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv24358

Modified Files:
      Tag: Zope-2_7-branch
	Test.py 
Log Message:
publish_module(): Be more discriminating before attaching an extra
item named 'form' to the request.


=== Zope/lib/python/ZPublisher/Test.py 1.40.66.2 => 1.40.66.3 ===
--- Zope/lib/python/ZPublisher/Test.py:1.40.66.2	Fri Mar  5 19:13:55 2004
+++ Zope/lib/python/ZPublisher/Test.py	Wed Mar 10 13:39:51 2004
@@ -190,7 +190,7 @@
                 request=Request(stdin, environ, response)
             for k, v in extra.items():
                 request[k] = v
-                if k == "form":
+                if (k == "form") and hasattr(v, 'items'):
                     # Force directly to request, in addition to request.other.
                     request.form = v
             response = publish(request, module_name, after_list, debug=debug)




More information about the Zope-Checkins mailing list