In the interest of making info available - I submitted a patch but it 
hasn't been picked up due to a couple of concerns about future revisions

On the off chance that you need to fix this issue and can't wait for the 
future here is what I have changed - it has been working for me very well. 
BUT note that any update to pydal will break your changes! Don't do this 
unless you are really really ready to move off the reservation…

in pydal/adapters/base.py inside the represent method of the BaseAdapter 
class change: 


            if field_is_type('list:string'):
                obj = map(str,obj)




 
TO:
            if field_is_type('list:string'):
                try:
                    obj = map(str,obj)
                except UnicodeEncodeError:
                    obj = map(lambda x:unicode(x).encode(self.db_codec),obj)

No warranty offered!

On Thursday, April 2, 2015 at 10:57:41 PM UTC-7, Tom Stratton wrote:
>
> Update - I found the bug reported here:
> https://github.com/web2py/web2py/issues/697
>
> I have also suggested a fix but I am not deep enough into the code to know 
> if it might break other behaviors.
>
> See the bug tracker for my suggested fix and let me know here if you have 
> any thoughts about what else might need to be changed.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to