Beispiel #1
0
 class SpreadsheetColumn(DocumentObject):
     name = fields.CharRegister()
     cells = fields.List(SpreadsheetCell)
Beispiel #2
0
 class SpreadsheetShare(DocumentObject):
     email = fields.CharRegister()
Beispiel #3
0
 class Spreadsheet(Document):
     name = fields.CharRegister()
     columns = fields.List(SpreadsheetColumn)
     shares = fields.Collection(SpreadsheetShare)
Beispiel #4
0
 class SpreadsheetCell(DocumentObject):
     content = fields.CharRegister()
Beispiel #5
0
class TestListofLists3(DocumentObject):
    comment = fields.CharRegister()
Beispiel #6
0
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
Beispiel #7
0
class Comments(Document):
    comment = fields.CharRegister()
Beispiel #8
0
class TestColofCols3(DocumentObject):
    comment = fields.CharRegister()
Beispiel #9
0
 class TestSingleton(Document):
     is_singleton = True
     nothing = fields.CharRegister()