class Location(db.Model):
title = db.StringProperty(required=True)
text = db.TextProperty()
imageUrl = db.StringProperty()
address = db.StringProperty(required=True)
addressOption = db.StringProperty()
city = db.StringProperty(required=True)
state = db.StringProperty(required=True)
stateShort = db.StringProperty(required=True)
zipcode = db.StringProperty(required=True)
email = db.StringProperty()
phone = db.StringProperty()
features = db.StringListProperty()
active = db.BooleanProperty(required=True, default=True)
I am trying to bulkload information to the model. I can't seem to
figure out how to specify the information for the "features"
StringListProperty. The bulkloader treats each character as a
seperate item in the list.
e.g. If the "features" column in the CSV file is:
[u'beach front']
the datastore treats the column as:
[,u,',b,e,a,c,h, ,f,r,o,n,t,',]
> class Location(db.Model):
> title = db.StringProperty(required=True)
> text = db.TextProperty()
> imageUrl = db.StringProperty()
> address = db.StringProperty(required=True)
> addressOption = db.StringProperty()
> city = db.StringProperty(required=True)
> state = db.StringProperty(required=True)
> stateShort = db.StringProperty(required=True)
> zipcode = db.StringProperty(required=True)
> email = db.StringProperty()
> phone = db.StringProperty()
> features = db.StringListProperty()
> active = db.BooleanProperty(required=True, default=True)
> I am trying to bulkload information to the model. I can't seem to
> figure out how to specify the information for the "features"
> StringListProperty. The bulkloader treats each character as a
> seperate item in the list.
> e.g. If the "features" column in the CSV file is:
> [u'beach front']
> the datastore treats the column as:
> [,u,',b,e,a,c,h, ,f,r,o,n,t,',]
On Sat, Jun 14, 2008 at 1:04 AM, rchurch <n...@rchurch.com> wrote:
> I have the following model:
> class Location(db.Model): > title = db.StringProperty(required=True) > text = db.TextProperty() > imageUrl = db.StringProperty() > address = db.StringProperty(required=True) > addressOption = db.StringProperty() > city = db.StringProperty(required=True) > state = db.StringProperty(required=True) > stateShort = db.StringProperty(required=True) > zipcode = db.StringProperty(required=True) > email = db.StringProperty() > phone = db.StringProperty() > features = db.StringListProperty() > active = db.BooleanProperty(required=True, default=True)
> I am trying to bulkload information to the model. I can't seem to > figure out how to specify the information for the "features" > StringListProperty. The bulkloader treats each character as a > seperate item in the list.
> e.g. If the "features" column in the CSV file is: > [u'beach front']
> the datastore treats the column as: > [,u,',b,e,a,c,h, ,f,r,o,n,t,',]