I suggest you to use post_import_function and post_export_function. They
gives you everything you need to manipulate entities.
Also check out these demos:
http://bulkloadersample.appspot.com/
--
keakon
My blog(Chinese): www.keakon.net
Blog source code: https://bitbucket.org/keakon/doodle/
On Thu, Dec 16, 2010 at 9:47 PM, Justin justin.worr...@gmail.com wrote:
How can I force the [csv] bulkloader to create entities with 'None'
property values if the relevent bulk data field is empty, as opposed
to assuming the entity model property is missing ?
I've tried
- using 'import_transform: transform.none_if_empty(str)' in
bulkloader.yaml
- using 'db.StringProperty(default=None)' in the model definition
Neither of which seems to work; what I find is
- empty fields appear as blanks in the dev_appserver datastore viewer
[if I put a model to the datastore with an explicity 'None' field via
the interactive console, it appears as 'None']
- I can't query the empty fields using Query.filter(field = , None)
[the filter just gets ignored]
Thank you.
--
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.
--
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-appeng...@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.