How do I get the value of a StringProperty in Python for Google App Engine?
问题 How do I get the values of a nbd.Model? I want to return a description that is composed of several of the fields but I can't get it to work. This is my code for my class: class User(ndb.Model): name = ndb.StringProperty() email = ndb.StringProperty() @classmethod def get_description(self): # return "Kobe Bryant (kobe.bryant@lakers.net)" return self.name + ' (' + self.email + ')' But name is a StringProperty object and can't be appended to a string. How do I get the value of the StringProperty