HI I REALLY wouldn't go down this path, unless you understand a great deal more about the inner workings of db.Model
__init__ gets called when objects are retrieved from the datastore as well. ALso something to consider, if your business rules changes over time and you decide to change them and existing entities don't comply with the rule, then you won't be able to retrieve them from the datastore. I would instead consider using properties designed to enforce the business rules, or use factories to create the entities that check all the rules based on the data supplied before creating the entity You might find it valuable to read some of Nick Johnsons blog posts on custom properties http://blog.notdot.net/2009/9/Custom-Datastore-Properties-1-DerivedProperty Rgds Tim -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/1Kq3b7hnhpsJ. 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.
