class myClass(db.model):
myProperty = db.StringProperty()
def __init__(self):
tempProperty = something complex.
myProperty = tempProperty
Is the best way to do processing on the creation of objects based on
db.model to create factories that generate the objects then?
class myClass(db.model):
myProperty = db.StringProperty()
def __init__(self, myProperty=None, **kwargs):
if myProperty is None:
myProperty = something cool
super(myClass, self).__init__(myProperty=myProperty, **kwargs)
since what you are doing is replacing the db.model constructor, not
actually calling it anywhere
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.