Shannon -jj Behrens wrote:
> I'd love to find a place for this code other than in every single one
> of my projects:

I was actually thinking about a replacement for MultiDict, and 
wsgiwrappers.GET/POST/params, that would look like:

GET = MultiWrapper(cgi.parseqsl(environ['QUERY_STRING']))

Where MultiWrapper takes a list like [('key', 'value')], and presents it 
as a read-only multidictish thing.  The list remains the information 
source, it just wraps.  This is mostly what MultiDict is now, but it's a 
little confused.

Then:

params = CascadingDict(GET, POST) (or POST, GET?)

Where CascadingDict is a bit like your code, except it looks like a 
dictionary.


-- 
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

_______________________________________________
Paste-users mailing list
[EMAIL PROTECTED]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to