class Document db Model Document author db ReferenceProperty User dtst

1
2
3
4
5
6
7
8
class Document(db.Model):
"""
Document
"""
author = db.ReferenceProperty(User)
dtstamp = db.DateTimeProperty(auto_now_add=True)
access = db.StringProperty(default='Private',choices=['Public', 'Private',])
access_users = db.ListProperty(db.Key)