471,330 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

A lib to build query string...

Hi!

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!
dd

Oct 27 '07 #1
1 3337
du*******@gmail.com <du*******@gmail.comwrote:
Is anybody knows about a function that can build query string from
parameter list? I very need that!
urllib.urlencode?
<http://docs.python.org/lib/module-urllib.html#l2h-3888>

--
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
Oct 28 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by tsteinke | last post: by
2 posts views Thread by Howard | last post: by
6 posts views Thread by dotnetnoob | last post: by
11 posts views Thread by =?Utf-8?B?U3RlZmFuIFdpbGhlbG0=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.