REQUEST and values stored there
Hia guys, the recent changes to the HTTPRequest class breaks some of my code. I may have missed some notifications, but why wasn't this made clear as it could obviously break code? -Morten
What breaks? There was no intention to break code or change the API. ----- Original Message ----- From: "Morten W. Petersen" <morten@thingamy.net> To: <zope-dev@zope.org> Sent: Wednesday, April 04, 2001 12:22 PM Subject: [Zope-dev] REQUEST and values stored there
Hia guys,
the recent changes to the HTTPRequest class breaks some of my code. I may have missed some notifications, but why wasn't this made clear as it could obviously break code?
-Morten
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
On Wed, 4 Apr 2001, Chris McDonough wrote:
What breaks? There was no intention to break code or change the API.
Code that looked like this: REQUEST['key_name1'] REQUEST['key_name2'] Now has to be changed to this: REQUEST.form['key_name1'] REQUEST.form['key_name2'] (The former method raises a KeyError.) These problems started to appear in the 2.3.x tree. -Morten
Wha? What are 'key_name1' and 'key_name2' in reality? ----- Original Message ----- From: "Morten W. Petersen" <morten@thingamy.net> To: "Chris McDonough" <chrism@digicool.com> Cc: <zope-dev@zope.org> Sent: Wednesday, April 04, 2001 2:30 PM Subject: Re: [Zope-dev] REQUEST and values stored there
On Wed, 4 Apr 2001, Chris McDonough wrote:
What breaks? There was no intention to break code or change the API.
Code that looked like this:
REQUEST['key_name1'] REQUEST['key_name2']
Now has to be changed to this:
REQUEST.form['key_name1'] REQUEST.form['key_name2']
(The former method raises a KeyError.)
These problems started to appear in the 2.3.x tree.
-Morten
participants (2)
-
Chris McDonough -
Morten W. Petersen