Hi,
I am trying to write a bulkuploader for my model, but it is failing.
It is due to my StringListProperty.
raise BadValueError('Property %s must be a list' % self.name)
BadValueError: Property tags must be a list
How can i write my bulkloader to take StringList?
class Product(search.SearchableModel):
title = db.StringProperty(required=True)
site = db.StringProperty(required=True)
url = db.LinkProperty(required=True)
tags = db.StringListProperty(default=None)
desc = db.StringProperty()
price = db.FloatProperty()
imgUrl = db.LinkProperty()
class ProductLoader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'Product',
[('title', str),
('site', str),
('price', float),
('url', str),
('desc', str),
('imgUrl', str),
('tags', str)
])
Thanks
Jon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---