class SpreadsheetColumn(DocumentObject): name = fields.CharRegister() cells = fields.List(SpreadsheetCell)
class SpreadsheetShare(DocumentObject): email = fields.CharRegister()
class Spreadsheet(Document): name = fields.CharRegister() columns = fields.List(SpreadsheetColumn) shares = fields.Collection(SpreadsheetShare)
class SpreadsheetCell(DocumentObject): content = fields.CharRegister()
class TestListofLists3(DocumentObject): comment = fields.CharRegister()
class MessageTest(ImmutableObject): # A demo class of an immutable object. It emulated a simple text message broadcast at a certain time # similar to a tweet messagetime = fields.IntRegister() # The time in epoch milliseconds of the message text = fields.CharRegister() # The text of the message
class Comments(Document): comment = fields.CharRegister()
class TestColofCols3(DocumentObject): comment = fields.CharRegister()
class TestSingleton(Document): is_singleton = True nothing = fields.CharRegister()