http://code.google.com/appengine/articles/hooks.html
- eric
2010/1/14 Nickolas Daskalou <ni...@daskalou.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
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 elegant solution was to derive a new type of
db.Property, and override its get_value_for_datastore. Then GAE will
automatically do what you want regardless of how the entity is being
put.
On Jan 14, 1:51 am, Eric Ka Ka Ng <ngk...@gmail.com> wrote:
> would a PreCallHook works for your case?
>
> http://code.google.com/appengine/articles/hooks.html
>
> - eric
>
> 2010/1/14 Nickolas Daskalou <n...@daskalou.com>:
2010/1/15 Nickolas Daskalou <ni...@daskalou.com>: