Re: [google-appengine] Re: EntityProto instance to Model instance?

2010-01-19 Thread Nick Johnson (Google)
Hi Nickolas, On Tue, Jan 19, 2010 at 1:09 AM, Nickolas Daskalou n...@daskalou.comwrote: I've managed to get this going, with the help of the comments in this thread and Nick Johnson's blog post ( http://blog.notdot.net/2009/11/API-call-hooks-for-fun-and-profit). My hook code now looks like

Re: [google-appengine] Re: EntityProto instance to Model instance?

2010-01-19 Thread Nickolas Daskalou
Ok, cheers Nick. 2010/1/20 Nick Johnson (Google) nick.john...@google.com Hi Nickolas, On Tue, Jan 19, 2010 at 1:09 AM, Nickolas Daskalou n...@daskalou.comwrote: I've managed to get this going, with the help of the comments in this thread and Nick Johnson's blog post (

Re: [google-appengine] Re: EntityProto instance to Model instance?

2010-01-18 Thread Nickolas Daskalou
I've managed to get this going, with the help of the comments in this thread and Nick Johnson's blog post ( http://blog.notdot.net/2009/11/API-call-hooks-for-fun-and-profit). My hook code now looks like this: def hook(service, call, request, response): assert service == 'datastore_v3' if

[google-appengine] Re: EntityProto instance to Model instance?

2010-01-17 Thread Andy Freeman
Search in google/appengine/ext/db/__init__.py for protobuf functions. On Jan 16, 9:21 pm, Nickolas Daskalou n...@daskalou.com wrote: Does anyone have an answer for this? Google guys? 2010/1/15 Kapil Kaisare kksm19820...@gmail.com As an aside: what is an EntityProto, and is there a link

Re: [google-appengine] Re: EntityProto instance to Model instance?

2010-01-17 Thread Nickolas Daskalou
Since these are not documented online anywhere, is it possible these functions may change in the future (and hence break my code)? 2010/1/18 Andy Freeman ana...@earthlink.net Search in google/appengine/ext/db/__init__.py for protobuf functions. On Jan 16, 9:21 pm, Nickolas Daskalou

[google-appengine] Re: EntityProto instance to Model instance?

2010-01-17 Thread Andy Freeman
I asked that question wrt db.class_for_kind and was told that it was safe to assume that it would always be there. I'd guess that model_from_protobuf should be safe as well. File a bug requesting that it be added to the documented function list. On Jan 17, 6:26 pm, Nickolas Daskalou

Re: [google-appengine] Re: EntityProto instance to Model instance?

2010-01-17 Thread Nickolas Daskalou
Will do, thanks Andy. 2010/1/18 Andy Freeman ana...@earthlink.net I asked that question wrt db.class_for_kind and was told that it was safe to assume that it would always be there. I'd guess that model_from_protobuf should be safe as well. File a bug requesting that it be added to the