[google-appengine] Running some code immediately before a Datastore put()?

2010-01-14 Thread Nickolas Daskalou
I have a property of a Model that is a hash of another property of the same Model, eg: class MyModel(db.Model): something = db.StringProperty() something_hash = db.StringProperty() def generate_hash(self): self.something_hash = sha1(self.something) I want generate_hash() to be

Re: [google-appengine] Running some code immediately before a Datastore put()?

2010-01-14 Thread Eric Ka Ka Ng
would a PreCallHook works for your case? http://code.google.com/appengine/articles/hooks.html - eric 2010/1/14 Nickolas Daskalou n...@daskalou.com: I have a property of a Model that is a hash of another property of the same Model, eg: class MyModel(db.Model):   something =