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 -~----------~----~----~----~------~----~------~--~---
