Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Passing multiple values to cherrypy.url()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Voltron  
View profile  
 More options Oct 20, 5:43 pm
From: Voltron <nhy...@googlemail.com>
Date: Tue, 20 Oct 2009 14:43:00 -0700 (PDT)
Subject: Passing multiple values to cherrypy.url()
How does one pass multiple values to the "qs" variable in the
cherrypy.url function? I would like to have "foo=1" and "bar=2"

cherrypy.url("title", qs="foo=edit")

Thanks


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Voltron  
View profile  
 More options Oct 20, 5:44 pm
From: Voltron <nhy...@googlemail.com>
Date: Tue, 20 Oct 2009 14:44:18 -0700 (PDT)
Local: Tues, Oct 20 2009 5:44 pm
Subject: Re: Passing multiple values to cherrypy.url()
This works:

cherrypy.url("title", qs="foo=1t;bar=2")

On Oct 20, 11:43 pm, Voltron <nhy...@googlemail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Roach  
View profile  
 More options Oct 20, 6:22 pm
From: Christopher Roach <vth...@gmail.com>
Date: Tue, 20 Oct 2009 15:22:27 -0700
Local: Tues, Oct 20 2009 6:22 pm
Subject: Re: [cherrypy-users] Re: Passing multiple values to cherrypy.url()
Though you can use a semi-colon to separate the values in a
querystring, I think you'll find that the normal convention is to use
an ampersand (&) to separate arguments. So, I would probably use the
following:

cherrypy.url("title", qs="foo=1&bar=2")

--
Christopher Roach
http://christopherroach.com

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Voltron  
View profile  
 More options Oct 22, 5:41 am
From: Voltron <nhy...@googlemail.com>
Date: Thu, 22 Oct 2009 02:41:33 -0700 (PDT)
Local: Thurs, Oct 22 2009 5:41 am
Subject: Re: Passing multiple values to cherrypy.url()
Thanks!

On Oct 21, 12:22 am, Christopher Roach <vth...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google