Have you tried implementing the HandleEntity() method of your
bulkload.Loader sub-class.
Find a format that you can use to put your list of strings inside a
single string, choose a separator that is not found in any possible
string.
example: string1@@string2@@string3
In HandleEntity() convert this string to a list
def HandleEntity(self, entity):
entity.mystringlist = entity.mystringlist.split('@@')
return entity
Or construct a converter in the loader definition
bulkload.Loader.__init__(self, 'MyClass',
[('mystringlist', lambda x: x.split('@@')),
])
http://code.google.com/appengine/articles/bulkload.html
2009/1/17 [email protected] <[email protected]>:
>
> Documentation on bulkLoad is sparse. I have found a couple of blog
> posts that have been helpful and I have my bulkLoaders running.
>
> Where I am stuck is in how to bulkLoad a StringListProperty element.
> Is there a format that I can put in the CSV that will get parsed into
> a list?
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---