Nevermind. I thought this worked, but it just inserts a nulled out
version of the entity.

On Mar 16, 10:33 pm, Petey <brianpeter...@gmail.com> wrote:
> Figured out either the solution or workaround.
>
> Just return an empty entity. So if the entity you are bulk loading is
> Foo then just do:
>
> return Foo()
>
> On Mar 16, 10:17 pm, Petey <brianpeter...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I'm looking for the same answer. I do a duplicate check before
> > importing and want to not insert it if it matches something already in
> > the db. And I get the same error when I return None, when the
> > documentation says to do that if you want to skip it.
>
> > On Mar 5, 1:52 pm, DocDay <google....@eoasys.com> wrote:
>
> > > Bulk loader is doing what I want, except I'd like to skip certain
> > > records on import.
>
> > > Usingpost_import_functionand returning None as described in the docs
> > > to skip records instead returns the message "NoneType has no attribute
> > >has_key".
>
> > > Has anyone successfully usedpost_import_functionto skip records?
>
> > > I seek a very simple, very explicit, and non-deprecated example of
> > > doing that.
>
> > > Anybody have one?

-- 
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.

Reply via email to