I'm downloading data from my production data store into a CSV using
appcfg.py and the remote_API  everything works great but i can't seem
to download the identity column. All of my persisteny properties come
down just fine. The property marked with :

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
public Long id;

isn't accessible.  I'm assuming i just don't know how to create the
model correctly since i'm new to python.  I'm getting a
MissingPropertyError: ID message

I'm thinking it's somthing simple regarding how i'm setting the id
= ..   in both my exporter and model
Here is my model:

class NimbitsUser(db.Model):
    id = db.IntegerProperty()   <---- wrong eh?
    email = db.StringProperty()
    user = db.StringProperty()
    userkey = db.StringProperty()
    dateCreated = db.DateProperty()

and my exporter:

class UserExporter(bulkloader.Exporter):
    def __init__(self):
        bulkloader.Exporter.__init__(self, 'NimbitsUser',
                                     [('email', str, None),
                                      ('user', str, None),
                                      ('userkey', str, None),
                                      ('dateCreated', str, None),
                                       ('id', int, None)
                                     ])

exporters = [UserExporter]

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