I find a blog gives a solution:
http://www.cnblogs.com/step1/archive/2009/03/12/1409899.html

Search these code in
\google_appengine\google\appengine\tools\bulkloader.py:

    for (name, converter), val in zip(self.__properties, values):

      if converter is bool and val.lower() in ('0', 'false', 'no'):

        val = False

      properties[name] = converter(val)


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')

      properties[name] = converter(val)


And the list properties should be wrapped by quote:

field1, field2, "list value1, list value2, list value3"


2009/5/21 Alex Popescu <[email protected]>

>
> I've looked through the official documentation of bulk uploader/
> exporter and I couldn't find any reference on how to use it when you
> have list or unicode properties.
>
> For unicode I assume that I'll have to encode each such value to utf8
> before exporting and decode it back to unicode upon import.
>
> For lists, things sound even more complex. I must confess that I
> haven't tried it yet, but (I don't know why exactly) I believe that
> specifying 'list' as a conversion type will not be enough.
>
> Has anyone tried any of these scenarios and have any hints for me?
>
> Many thanks in advance,
>
> ./alex
> --
> DailyCloud: http://the.dailycloud.net
> >
>

--~--~---------~--~----~------------~-------~--~----~
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