A lib to build query string...

durumdara at gmail.com durumdara at gmail.com
Sat Oct 27 16:06:00 CEST 2007


I have a pager component.
This component is makes database slices (record sets) and it is use 
query string's PageIndex element to identify the actual page.

This component is makes pager buttons in HTML to control.
Like this:
<< < 4 5 6 > >>

My problem that I need to search and I need to use pager in the resultset.

This time I need to give all search parameters to the controller HTML.

I wanna automatize that with this:
qdict = parse_query(query_string)
qdict['pageindex'] = neededpageindex
new_query_string = make_query_string(qdict)

Is anybody knows about a function that can build query string from 
parameter list? I very need that!

Thanks for it!

More information about the Python-list mailing list