class A(db.Model):
    x = db.StringProperty(default='hi')
    def __init__(self, *args, **kwds):
        self._x = 'yes'
        super(A, self,).__init__(*args, **kwds)

a = A()

There's nothing in the documentation that suggests a connection
between A's property x and the instance variable _x, but the db.Model
and property implementation uses _x to store values for x.

This should be documented.  (Of course, it isn't actually necessary -
an instance's property data could have been stored in a single
instance-specific structure with a documented name, but ....)


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

Reply via email to