Hi Tom,
Have you takena look at the article on the bulk data uploader?
http://code.google.com/appengine/articles/bulkload.html I assume so
since you asked about an additional example which uses
ReferenceProperties. It seems like it should be possible to specify a
reference property by indicating Key as the converter for the property
name.
from google.appengine.ext import bulkload
from google.appengine.api import datastore_types
...
MyEntityLoader(bulkload.Loader):
def __init__(self):
bulkload.Loader.__init__(self, 'MyEntity',
[('name', str),
('first_ref', datastore_types.Key),
('second_ref', datastore_types.Key),
])
One caveat, I haven't tried this yet :-) I'm going by the source code
here and here:
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/bulkload/__init__.py
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/api/datastore_types.py
Happy coding,
Jeff
On Oct 21, 1:08 pm, Tom <[EMAIL PROTECTED]> wrote:
> Would someone point me to richer examples of bulk upload? An example
> with db.ReferenceProperty in the uploaded classes would be very
> helpful.
>
> Where is the reference documentation to the 'bulkload' class?
>
> (Yes, I am completely nervous about committing to the database behind
> GAE without a method of backup and recovery!)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---