On Thu, May 21, 2009 at 9:29 AM, 风笑雪 <[email protected]> wrote:
> Change it to:
>>
>>      for (name, converter), val in zip(self.__properties, values):
>>
>>       if converter is bool and val.lower() in ('0', 'false', 'no'):
>>
>>           val = False
>>
>>       if isinstance(val,str) and not isinstance(val, unicode):
>>
>>           val=unicode(val,'utf-8')

This change is not needed. Instead of specifying str as converter,
define a conversion function and use that instead:

def convert_str(val):
    return unicode(val, 'utf-8')

-- rodrigo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to