Tracy S. Ruggles [mailto:[EMAIL PROTECTED] wrote:
> Currently (w/ Webware 0.8 and ExtraPathInfo turned on), these results 
> are happening:
> 
> (for Test.py)
>       URL:  http://localhost/WK/Test/SubPage?_action_New
>       request().extraURLPath() --> '/SubPage'
>       request().fields() --> {}
>       (Test.New is *not* being called)
> 
>       URL: http://localhost/WK/Test/SubPage?_action_New=1
>       request().extraURLPath() --> '/SubPage'
>       request().fields() --> {'_action_New':1}
>       (Test.New *is* called)
> 
> Is this expected behavior?  If not, is it the oddities 
> associated with 
> having ExtraPathInfo turned on?  It would seem that if an url has no 
> data associated with a name, then request().fields() should be 
> {'_action_New':None} so that the appropriate action is called.

It works the same way with ExtraPathInfo turned off.

Python's built-in cgi.parse_qs function works the same way, so it seems
correct to me.

>>> import cgi
>>> cgi.parse_qs('a=b')
{'a': ['b']}
>>> cgi.parse_qs('a')
{}

- Geoff


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to