|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
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...@...> wrote: > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
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") On Tue, Oct 20, 2009 at 2:44 PM, Voltron <nhytro@...> wrote: > > This works: > > cherrypy.url("title", qs="foo=1t;bar=2") > > > On Oct 20, 11:43 pm, Voltron <nhy...@...> wrote: >> 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 > > > -- Christopher Roach http://christopherroach.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Passing multiple values to cherrypy.url()Thanks! On Oct 21, 12:22 am, Christopher Roach <vth...@...> wrote: > 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") > > > > On Tue, Oct 20, 2009 at 2:44 PM, Voltron <nhy...@...> wrote: > > > This works: > > > cherrypy.url("title", qs="foo=1t;bar=2") > > > On Oct 20, 11:43 pm, Voltron <nhy...@...> wrote: > >> 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 > > -- > Christopher Roachhttp://christopherroach.com You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users@... To unsubscribe from this group, send email to cherrypy-users+unsubscribe@... For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |