Monday, March 2, 2009

Properties in Python

Can set a property like this

class Group(db.Model):
name = db.StringProperty()
description = db.TextProperty()

@property
def members(self):
return Contact.gql("WHERE groups = :1", self.key())

What is that ampersand notation?

No comments: