<s> from datetime import datetime <EOL> from mongoengine import * <EOL> class TestItem2 ( EmbeddedDocument ) : <EOL> name = StringField ( ) <EOL> type = StringField ( ) <EOL> typespecific = DictField ( default = { } ) <EOL> class Entry ( EmbeddedDocument ) : <EOL> created = DateTimeField ( default = datetime . now ( ) ) <EOL> class StringEntry ( Entry ) : <EOL> value = StringField ( ) <EOL> class InfoDoc ( EmbeddedDocument ) : <EOL> title = StringField ( ) <EOL> created = DateTimeField ( default = datetime . now ( ) ) <EOL> class Table ( Document ) : <EOL> info = EmbeddedDocumentField ( InfoDoc ) <EOL> schema = ListField ( EmbeddedDocumentField ( TestItem2 ) ) <EOL> entries = ListField ( EmbeddedDocumentField ( Entry ) ) </s>
