On Sep 13, 6:07 pm, Diego Woitasen <[email protected]> wrote:
> I have simple method in my root controller:
>
> def print(self, text):
>     return text
>
> I don't know why but when I dohttp://localhost:8080/print/www.paypal.comtext 
> variable is equal to
> 'www.paypal'. The weird thing is if I 
> dohttp://localhost:8080/print/www.paypal.com.arI receive the whole
> string.
>
> Any idea?
>


I'm not sure exactly what's going on there but clearly something is
parsing it out. You can avoid the parsing by terminating the FQD with
a sentinel character of some type. For example, 
http://localhost:8080/print/www.paypal.com%20
results in 'www.paypal.com ' being returned. You can also quote it
with something like, http://localhost:8080/print/%27www.paypal.com%27
and you'll get "'www.paypal.com'". Notice the inner single quote
marks.

Someone more versed as to TG internals will need to enlighten us as to
why escaping and/or quoting kludging is required to make this work.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to