Issue Details (XML | Word | Printable)

Key: MODPYTHON-38
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
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

Passing req.form into psp.PSP().

Created: 21/Mar/05 06:08 AM   Updated: 02/Apr/07 11:15 AM
Return to search
Component/s: core
Affects Version/s: 3.1.4
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

Resolution Date: 30/Jul/06 04:22 AM


 Description  « Hide
When calling psp.PSP() explicitly to render PSP pages, it will internally setup
req.form if it determines that the form is accessed by the PSP page.

Problem is that if you are wanting to trigger psp.PSP() from a publisher function
any form parameters have already been processed and req.form created. For a
POST request this is problematic as in doing this it will have consumed all the
content of the request.

This means that when the form is processed a second time by psp.PSP(), it will
find no request content. Thus, the PSP page will only be able to make use of
GET form parameters and not POST form parameters.

It would be an improvement if psp.PSP() allowed a instance of util.FieldStorage
which has previously been created to be passed in through the "form" parameter
of the constructor. Ie.,

    template = psp.PSP(req,filename=path,vars=settings,form=req.form)
    template.run()


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicolas Lehuen made changes - 22/Oct/05 04:03 PM
Field Original Value New Value
Component/s core [ 11607 ]
Graham Dumpleton made changes - 30/Jul/06 01:35 AM
Assignee Graham Dumpleton [ grahamd ]
Graham Dumpleton made changes - 30/Jul/06 01:35 AM
Status Open [ 1 ] In Progress [ 3 ]
Graham Dumpleton made changes - 30/Jul/06 04:22 AM
Fix Version/s 3.3 [ 12310101 ]
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Graham Dumpleton made changes - 02/Apr/07 11:15 AM
Status Resolved [ 5 ] Closed [ 6 ]