Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to bulkload a list property
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rchurch  
View profile  
(1 user)  More options Jun 13 2008, 1:04 pm
From: rchurch <n...@rchurch.com>
Date: Fri, 13 Jun 2008 10:04:14 -0700 (PDT)
Local: Fri, Jun 13 2008 1:04 pm
Subject: How to bulkload a list property
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,',]

Thanks for the help!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Col Wilson  
View profile  
 More options Jun 13 2008, 3:16 pm
From: Col Wilson <col.wilson.em...@googlemail.com>
Date: Fri, 13 Jun 2008 12:16:08 -0700 (PDT)
Local: Fri, Jun 13 2008 3:16 pm
Subject: Re: How to bulkload a list property
I don't have any StringListPropertys, but I do need to doo a bulkload.
Can I see how you are doing that please?

On Jun 13, 6:04 pm, rchurch <n...@rchurch.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
@@  
View profile  
(2 users)  More options Jul 16 2008, 5:49 am
From: "@@" <ask...@gmail.com>
Date: Wed, 16 Jul 2008 17:49:12 +0800
Local: Wed, Jul 16 2008 5:49 am
Subject: Re: [google-appengine] How to bulkload a list property

hi
you can try this
   bulkload.Loader.__init__(self, 'Location',
                         [..............
                      ('features', str.split),
                          ...............
                          ])


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google