Collections
Opened this issue · 0 comments
jaimegildesagredo commented
A collection is a Store subclass with access only to the specified Persistent class.
class User(Persistent):
name = StringField()
users = Collection(User)
Adding a new user
users.add(name=u'Bob')
Finding users
users.find()
or
for user in users:
print user.name