Resolved: (MODPYTHON-38) Passing req.form into psp.PSP().
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Resolved: (MODPYTHON-38) Passing req.form into psp.PSP().




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Resolved: (MODPYTHON-38) Passing req.form into psp.PSP().  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-30-06 06:13 AM

[ http://issues.apache.org/jira/brows...HON-38?page=all ]

Graham Dumpleton resolved MODPYTHON-38.
---------------------------------------

Fix Version/s: 3.3
Resolution: Fixed

Fixed, with PSP code now using FieldStorage object cached as req.form and le
ft there by prior executing code. Allows for better interaction between publ
isher handler and PSP pages, plus PSP error pages.

All the session issues described in this issue are dealt with by other probl
em reports.

> Passing req.form into psp.PSP().
> --------------------------------
>
>                 Key: MODPYTHON-38
>                 URL: http://issues.apache.org/jira/browse/MODPYTHON-38
>             Project: mod_python
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.1.4
>            Reporter: Graham Dumpleton
>         Assigned To: Graham Dumpleton
>            Priority: Minor
>             Fix For: 3.3
>
>
> 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 f
unction
> 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 al
l 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.FieldSt
orage
> which has previously been created to be passed in through the "form" param
eter
> of the constructor. Ie.,
>     template = psp. PSP(req,filename=path,vars=settings,form
=req.form)
>     template.run()






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register