[web2py] Crash in gluon/html.py

2014-03-24 Thread Chris Hobbs
html.py does not seem to be unicode-safe. It contains (line 1914 or 
thereabouts):

components.append(OPTION(c, _value=str(c)))

In my case c contains Max-Guénaël (i.e., uMax-Gu\xe9na\xebl). The str(c) 
dies nastily.

Is this a bug or am I asking too much of web2py?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Crash in gluon/html.py caused by unicode characters

2014-03-24 Thread Chris Hobbs
I tried to post this problem earlier, but it doesn't seem to have appeared. 
If it has now appeared twice, then I apologise and suggest you read the two 
stereoscopically.

/gluon/html.py in _fixup at line 1914 has the line

components.append(OPTION(c, _value=str(c)))

This call to str() coughs and explodes when presented with the string 
uMax-Gu\xe9na\xebl 
as it was in my application yesterday as part of a SELECT().

Should this be unicode-safe or am I expecting too much of web2py?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.