By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,905 Members | 1,626 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,905 IT Pros & Developers. It's quick & easy.

A lib to build query string...

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.