On Fri, Nov 8, 2013 at 8:13 PM, Weilies Chok <[email protected]> wrote:

> Hi Timh, could you guide me wht's the missing part in my code?
>
>

To manufacture an entity key, you need two things: the kind and the entity
ID/name. But *weiles* is a property value, you can't create an entity key
from that.

What you need to do is query the datastore for entities that have the
property username equal to *weiles*, retrieve the entity, and then delete
the entity. Here's a code example for querying ndb:
https://developers.google.com/appengine/docs/python/ndb/queries . From
there you can loop through all the returned entities and do whatever you
want.


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to