On Tue, Jun 23, 2009 at 2:54 PM, Jonathan Feinberg <e.e.c...@gmail.com>wrote:
> > On Tue, Jun 23, 2009 at 9:26 AM, Nick Johnson (Google) < > nick.john...@google.com> wrote: > > > Check out the source code for the Exporter in the bulkloader: > > > http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/tools/bulkloader.py#3308. > The docstrings describe how to define your own exporter class that stores > > data however you want. > > > > The docstring on the Exporter class is incorrect; it suggests > overriding a > method on the Loader class. > > The Exporter class's __init__ method expects a bunch of tuples that > connect > entity properties to functions that return strings. There doesn't seem > to be > a way to decouple this assumption (that properties are serialized as > strings) from the other initialization machinery (registering the > exporter > for a given entity class). Am I missing something? Raw strings (that is, ones that aren't unicode) can contain any data, including blobs, and all the conversion functions should return raw strings. You can then override output_entities to output the data to the format of your choice. -Nick Johnson > > > -- Nick Johnson, App Engine Developer Programs Engineer Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---