Hi Dan,
On Sun, May 17, 2009 at 1:24 AM, Devel63 <[email protected]> wrote: > > Is there some way to export key_names and then later import them using > the bulkloader? Unfortunately, the exporter code doesn't provide any easy way to export key names. Your best bet is probably to extend output_entities, which I agree is not ideal. > > I've seen the examples from folks messing around with Handle_Entity, > but that seems pretty kludgy (and dangerous, given that this is inside > the source, and changed last release). If you just want to determine the key name, you can override generate_key: http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/tools/bulkloader.py#3215 . Overriding handle_entity is explicitly encouraged, though - as the docstring states: "Subclasses can override this to add custom entity conversion code.". > > And key_name aside, what about preserving Reference links in general. > How is that done? You can write a function to modify it on download, or on upload - whatever works best for your particular situation. -Nick Johnson --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
