This is a major discovery. Would you send me a patch?

On Jan 22, 10:58 am, Timothy Farrell <tfarr...@swgen.com> wrote:
> So I'm tinkering with Jython again.  Last time I tinkered, I found that
> routes didn't work (for static files).  I just found out why...but
> before the explanation...the fix:
>
> change:
>      if isinstance(stream, str):
> in response.stream() to:
>      if isinstance(stream, (str, unicode)):
>
> The reason why is because the routing process in Jython (namely regexp
> transformation) turns the string into a unicode object because it uses
> Java's regexp library (which only uses unicode strings).
>
> -tim

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to