That is a curious situation. I would like to know also if there is a way to inject code into the put-stream regardless of method called, as I have various put() overrides as well.
On Jan 13, 9:45 pm, Devel63 <[email protected]> wrote: > I overrode the put method on a class derived from Model, primarily > because I wanted to do some accounting work when a new object was > saved (in the simplest case, just keeping track of a counter). It > does its work, then calls super. > > It works fine. > > Until I use db.put([ob1,obj2,obj3]) to save a bunch of these, and then > of course the individual object.put() functions are never called. > > Is there a best practice for this? I really liked having it in the > "put", because then no caller needed to know about it, and it just > took care of itself. Is the best thing to precede every "put" call > with an explicit "put_prep" call? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
