strict_parsing parameter in forms handling.
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 > strict_parsing parameter in forms handling.




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

    strict_parsing parameter in forms handling.  
Graham Dumpleton


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


 
04-18-06 05:06 AM

The util.FieldStorage class, plus parse_qs and parse_qsl functions
take a
parameter called strict_parsing. All the documentation says is:

The \var{strict_parsing} argument is not yet implemented.

Ie., it doesn't even say what it is meant to be for.

Does anyone know what it is meant to be for. The closest I could find as
to what it may be for is from cgi.FieldStorage documentation:

strict_parsing: flag indicating what to do with parsing errors.
If false (the default), errors are silently ignored.
If true, errors raise a ValueError exception.

I don't know though what constitutes an error though.

This argument has been there back from mod_python 2.X. If it is never
going
to be implemented, is there any point really keeping it in the API?????

Graham






[ Post a follow-up to this message ]



    Re: strict_parsing parameter in forms handling.  
Jim Gallacher


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


 
04-21-06 12:02 AM

Graham Dumpleton wrote:
> The util.FieldStorage class, plus parse_qs and parse_qsl functions  take a
> parameter called strict_parsing. All the documentation says is:
>
>   The \var{strict_parsing} argument is not yet implemented.
>
> Ie., it doesn't even say what it is meant to be for.
>
> Does anyone know what it is meant to be for. The closest I could find as
> to what it may be for is from cgi.FieldStorage documentation:
>
>   strict_parsing: flag indicating what to do with parsing errors.
>       If false (the default), errors are silently ignored.
>       If true, errors raise a ValueError exception.
>
> I don't know though what constitutes an error though.
>
> This argument has been there back from mod_python 2.X. If it is never
> going
> to be implemented, is there any point really keeping it in the API?????

I've always wondered about this one. I'd be in favour of deprecating it,
or removing any mention of it in the docs at least.

Jim






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:55 PM.      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