Re: [google-appengine] Re: Not able to delete an Item in Entity. Help needed :)

2013-11-10 Thread Vinny P
On Sat, Nov 9, 2013 at 7:05 PM, Weilies Chok weili...@gmail.com wrote: Thanks and finally I got it right! But still think it's harder than SQL If you would prefer to use SQL, you can store your data in Google's Cloud SQL service: https://developers.google.com/cloud-sql/docs/getting-started

Re: [google-appengine] Re: Not able to delete an Item in Entity. Help needed :)

2013-11-09 Thread Weilies Chok
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 weil...@gmail.comjavascript: wrote:

Re: [google-appengine] Re: Not able to delete an Item in Entity. Help needed :)

2013-11-09 Thread Weilies Chok
Thanks and finally I got it right! But still think it's harder than SQL -- 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

Re: [google-appengine] Re: Not able to delete an Item in Entity. Help needed :)

2013-11-09 Thread timh
Its not SQL, and it's a mistake to think of it in those terms. In many cases I think it is easier than SQL, just depends on what you are used to and what you want to do. Tree's are much easier in the datastore than SQL for instance. T On Sunday, November 10, 2013 9:05:17 AM UTC+8, Weilies Chok

[google-appengine] Re: Not able to delete an Item in Entity. Help needed :)

2013-11-08 Thread timh
Just look at the dashboard and the records there. w_key = ndb.Key(DSusers, 'weilies') can't possibly match any record. You are setting the username to 'weilies' but not the key name You need to perform a query for the matching entity then delete. delete() method doesn't return anything hence

[google-appengine] Re: Not able to delete an Item in Entity. Help needed :)

2013-11-08 Thread Weilies Chok
Hi Timh, could you guide me wht's the missing part in my code? Thanks On Saturday, November 9, 2013 8:40:39 AM UTC+8, timh wrote: Just look at the dashboard and the records there. w_key = ndb.Key(DSusers, 'weilies') can't possibly match any record. You are setting the username to

Re: [google-appengine] Re: Not able to delete an Item in Entity. Help needed :)

2013-11-08 Thread Vinny P
On Fri, Nov 8, 2013 at 8:13 PM, Weilies Chok weili...@gmail.com 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.