[google-appengine] Re: Model.put() Override?

2009-01-14 Thread boson
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 wrote: > I overrode the put method on a class derived from Model, primarily > because I

[google-appengine] Re: Model.put() Override?

2009-01-17 Thread James Ashley
The "simple" answer seems to be "override the db class." That's totally off the top of my head, and it may be completely unrealistic. Something like (totally untested and almost definitely wrong. Consider it pseudo-code): class my_db(google.ext.db): def put(self, *objects, **kwargs): for

[google-appengine] Re: Model.put() Override?

2009-01-20 Thread Bill
The most recent SDK (1.1.8) now allows hooks, and that seems to be the best way to hack datastore puts. Jens (http://blog.appenginefan.com/) has started to blog about use of the hook feature and gave two examples at our local App Engine meetup tonight. Stay tuned to his blog for a good explanati