I also found Nick Johnson's (google guy) post on this to be very useful.
Honestly, his whole blog is useful - App Engine tips from a guy on the
inside.
http://blog.notdot.net/2009/9/Custom-Datastore-Properties-1-DerivedProperty
--
You received this message because you are subscribed to the Go
You can use aetycoon, example:
http://blog.notdot.net/2009/12/Most-popular-metrics-in-App-Engine
2010/1/15 Nickolas Daskalou :
> I'm pretty sure the code on the GAE Hooks article
> (http://code.google.com/appengine/articles/hooks.html) is wrong.
>
> 4th code snippet, shouldn't the very first line:
I'm pretty sure the code on the GAE Hooks article (
http://code.google.com/appengine/articles/hooks.html) is wrong.
4th code snippet, shouldn't the very first line:
def path_appengine():
be moved to the bottom, just above this line:
apiproxy_stub_map.apiproxy.GetPreCallHooks().Append()
Thanks guys, both great suggestions.
I'll try and get PreCallHook working because that would allow me to add a
"pre_put()" method to my Models, and then using these PreCallHooks I can
call pre_put() for each of the entities being put into the Datastore.
Failing that, I'll create a new derived pro
Nick,
I've been faced with your exact situation. I have to say I don't
understand PreCallHook, and maybe that would be the best approach, but
here's what I do know.
Overriding "put" is a bad idea, and as you point out, the override
will not be called in a batch put.
I found that the most elegan