Issue Details (XML | Word | Printable)

Key: MODPYTHON-207
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graham Dumpleton
Reporter: Graham Dumpleton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

The attribute req.args should be modifiable.

Created: 19/Nov/06 03:01 AM   Updated: 01/May/07 10:57 AM
Component/s: core
Affects Version/s: 3.3.x
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

Resolution Date: 19/Nov/06 03:16 AM
Labels:


 Description  « Hide
For completeness, the req.args attribute should be modifiable. Updating req.args is done in modules like mod_rewrite and so something that emulates that may find it useful. It also may be necessary when wishing to interact with mod_proxy where one wants to add additional query args to the request as it is passed through to the downstream web server.

One use within mod_python itself may be to allow GET style query args when a POST request has been submitted to be wiped out before util.FieldStorage is used to process form fields. This would avoid using the hack approach of creating a wrapper class around the request object which returns an empty string when req.args is accessed.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Graham Dumpleton made changes - 19/Nov/06 03:01 AM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Repository Revision Date User Message
ASF #476692 Sun Nov 19 03:16:19 UTC 2006 grahamd (MODPYTHON-207) The attribute req.args is now modifiable and can be set
from within handlers.
Files Changed
MODIFY /httpd/mod_python/trunk/Doc/modpython4.tex
MODIFY /httpd/mod_python/trunk/src/requestobject.c
MODIFY /httpd/mod_python/trunk/Doc/appendixc.tex

Graham Dumpleton made changes - 19/Nov/06 03:16 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Graham Dumpleton made changes - 01/May/07 10:57 AM
Status Resolved [ 5 ] Closed [ 6 ]