List Info

Thread: How to pass urls in urls




How to pass urls in urls
user name
2006-03-10 21:47:54
I have a function:

do_change_view(filter=None, filter2, forwardToUrl):

This function changes the view and then redirects to the
forwardToUrl.
However, when I run it:

<a
href=/do_change_view?filter=newFilter;forwardToUrl="/d
o_list?arg1=10;arg2=12">do
List</a>

I get the following error:

do_change_view got an unexpected keyword argument
'"'

The actual URL gets converted to:

<a
href=/do_change_view?filter=newFilter;forwardToUrl=%22/do_li
st?arg1=10;arg2=12%22>do
List</a>

Any ideas on how I can pass URL's as variables?

Thanks,

VJ


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

How to pass urls in urls
user name
2006-03-10 22:01:04
It seems urllib.quote and urllib.unquote should do the
trick. I'm going
to try it out this evening


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )