
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
30/Jul/06 04:22 AM
|
|
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()
|
|
Description
|
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()
|
Show » |
| Repository |
Revision |
Date |
User |
Message |
| ASF |
#191745 |
Tue Jun 21 23:35:59 UTC 2005 |
jgallacher |
Changed run() to call req.get_session() when it needs to create a session.
If a session was previously created with req.get_session(), the current session instance is returned, other wise a new one is created.
This solves potential deadlock issues if the user previously created a session and called run() without unlocking the session.
Ref MODPYTHON-38
|
| Files Changed |
MODIFY
/httpd/mod_python/trunk/lib/python/mod_python/psp.py
|
|