I'm seeing this in a controller method. For this particular "PUT"
action I'm expecting the body is empty.
I have the following few lines
log.debug("HTML updating jobs with ids = %s, params=%s" %
(id,request.params))
assert request.params.has_key("update_op")
which produces ...
12:58:31,871 DEBUG [vrq_server.controllers.jobs] HTML updating jobs
with ids = 101, params=UnicodeMultiDict([('_method', u'put'),
('update_op', u'Reset'), ('ids', u'101'), ('render_id', u'2')])
and keeps running, whereas ...
log.debug("HTML updating jobs with ids = %s, params=%s, body=%s" %
(id,request.params,request.body)
log.debug(" now params=%s" % request.params)
assert request.params.has_key("update_op")
produces ...
13:01:23,888 DEBUG [vrq_server.controllers.jobs] HTML updating jobs
with ids = 101, params=UnicodeMultiDict([('_method', u'put'),
('update_op', u'Reset'), ('ids', u'101'), ('render_id', u'2')]), body=
13:01:23,889 DEBUG [vrq_server.controllers.jobs] now
params=UnicodeMultiDict([])
File '/home/drw900/dev/vrq/vrq_server/vrq_server/controllers/jobs.py',
line 80 in update
assert request.params.has_key("update_op")
AssertionError:
Somehow the request.params are being nuked. This is using the Pylons
0.9.7beta5.
-Drew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---