Thanks Vinny!

Finally i got the code working :)
It's sooo.. much harder compare to do things in normal SQL. especially for 
complex query i think

On Saturday, November 9, 2013 12:26:24 PM UTC+8, Vinny P wrote:
>
> On Fri, Nov 8, 2013 at 8:13 PM, Weilies Chok <[email protected]<javascript:>
> > 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