[google-appengine] Re: How can I know if the entity is created or just updated in post call hook?

2009-08-12 Thread Takashi Matsuo
Hi Nick, Nevermind. At last I can implement desired db_hook function. Thank you for the help. Regards, Detailed implementation is here(for those who is interested in): http://code.google.com/p/kay-framework/source/detail?r=688c802289158b1cdd1c00eda5c31218083ebcc1 On Tue, Aug 11, 2009 at 11:11

[google-appengine] Re: How can I know if the entity is created or just updated in post call hook?

2009-08-11 Thread Takashi Matsuo
Hi Nick, On Tue, Aug 11, 2009 at 7:50 PM, Nick Johnson (Google) wrote: > > On Tue, Aug 11, 2009 at 7:29 AM, Takashi Matsuo > wrote: >> >> Hi Nick, >> >> On Thu, Jul 30, 2009 at 4:48 PM, Nick Johnson >> (Google) wrote: >>> Hi Takashi, >>> >>> If the entity being put has neither key name nor id, a

[google-appengine] Re: How can I know if the entity is created or just updated in post call hook?

2009-08-11 Thread Nick Johnson (Google)
On Tue, Aug 11, 2009 at 7:29 AM, Takashi Matsuo wrote: > > Hi Nick, > > On Thu, Jul 30, 2009 at 4:48 PM, Nick Johnson > (Google) wrote: >> Hi Takashi, >> >> If the entity being put has neither key name nor id, a new id will be >> created for it when it's put, so it will always result in a new enti

[google-appengine] Re: How can I know if the entity is created or just updated in post call hook?

2009-08-10 Thread Takashi Matsuo
Hi Nick, On Thu, Jul 30, 2009 at 4:48 PM, Nick Johnson (Google) wrote: > Hi Takashi, > > If the entity being put has neither key name nor id, a new id will be > created for it when it's put, so it will always result in a new entity being > inserted rather than an existing entity being replaced. L

[google-appengine] Re: How can I know if the entity is created or just updated in post call hook?

2009-07-30 Thread Nick Johnson (Google)
Hi Takashi, If the entity being put has neither key name nor id, a new id will be created for it when it's put, so it will always result in a new entity being inserted rather than an existing entity being replaced. Likewise, if you see an entity with an id being put, it is almost certainly an upda