I'm trying to bulkload data using appcfg.py as described here. I got it working except setting parent entity, I can't seem to find info on how to set a parent entity for entity being created by the import. Can you point me to the right direction or provide a code snippet for my bulkloader.Loader implementation?
Asked
Active
Viewed 219 times
1 Answers
1
You need to override the generate_key method of your Loader class. See this post for details.

Nick Johnson
- 100,655
- 16
- 128
- 198
-
There is no example on how to set parent in that post :( – Janusz Skonieczny Mar 02 '10 at 14:49
-
1Just return the key you want your entity to have from the generate_key function. You can construct it with, eg, db.Key.from_path('kind', 'name', parent=parent_key) – Nick Johnson Mar 02 '10 at 16:31