Example #1
0
class Model(tests.UUIDAutoModel):
    counter = sheraf.CounterAttribute(default=0)
    useless = sheraf.InlineModelAttribute(
        sheraf.InlineModel(foo=sheraf.SimpleAttribute(default="bar",
                                                      lazy=False), ),
        lazy=False,
    )
Example #2
0
class Model1(sheraf.Model):
    table = "model1_table"

    simple = sheraf.SimpleAttribute(lazy=False)
    my_inline_model = sheraf.InlineModelAttribute(InlineModel, lazy=False)
    my_blob = sheraf.BlobAttribute(lazy=False)
    counter = sheraf.CounterAttribute(lazy=False)
Example #3
0
 class Model(tests.UUIDAutoModel):
     inlines = sheraf.SetAttribute(sheraf.InlineModelAttribute(SetInlineModel))
Example #4
0
 class Model(tests.UUIDAutoModel):
     inline = sheraf.SetAttribute(
         sheraf.InlineModelAttribute("anticonstitutionnellement")
     )
Example #5
0
 class Model(tests.UUIDAutoModel):
     inline = sheraf.InlineModelAttribute(InlineModel)
Example #6
0
 class AModel(tests.UUIDAutoModel):
     inline = sheraf.InlineModelAttribute(model=InlineModel, default=None)
Example #7
0
 class Model(tests.UUIDAutoModel):
     bar = sheraf.InlineModelAttribute(MyInline)
Example #8
0
 class Model(tests.UUIDAutoModel):
     inlines = attribute(sheraf.InlineModelAttribute(ListInlineModel))
Example #9
0
 class Model(tests.UUIDAutoModel):
     other = sheraf.InlineModelAttribute(DummyModel)
Example #10
0
 class Model(tests.UUIDAutoModel):
     models = sheraf.SmallListAttribute(
         sheraf.InlineModelAttribute(MyInline))
Example #11
0
 class Model(tests.UUIDAutoModel):
     models = sheraf.LargeDictAttribute(
         sheraf.InlineModelAttribute(MyInline))
Example #12
0
class Y_ZODBModelWithInlineAttribute(tests.UUIDAutoModel):
    tels = sheraf.LargeDictAttribute(
        sheraf.InlineModelAttribute(Y_ZODBInlineModel))
Example #13
0
class Test_sheraf_rep_3(tests.UUIDAutoModel):
    tels = sheraf.LargeDictAttribute(
        sheraf.InlineModelAttribute(Test_sheraf_tel_in_3))
Example #14
0
 class Model(tests.UUIDAutoModel):
     inlines = sheraf.LargeDictAttribute(
         sheraf.InlineModelAttribute(DictInlineModel))
Example #15
0
 class Model(tests.UUIDAutoModel):
     inlines = sheraf.DictAttribute(
         sheraf.InlineModelAttribute(DictInlineModel),
         persistent_type=IOBTree)
Example #16
0
class Parent(tests.UUIDAutoModel):
    sons = sheraf.LargeDictAttribute(sheraf.InlineModelAttribute(Child))
    daughters = sheraf.SmallListAttribute(sheraf.InlineModelAttribute(Child))
Example #17
0
 class Model(tests.UUIDAutoModel):
     inline = sheraf.InlineModelAttribute(
         sheraf.InlineModel(name=sheraf.SimpleAttribute()))
Example #18
0
class Model(tests.UUIDAutoModel):
    inline_model = sheraf.InlineModelAttribute(MyInlineModel)
Example #19
0
 class Model(tests.UUIDAutoModel):
     inline = attribute(
         sheraf.InlineModelAttribute("{}.{}".format(
             ListInlineModel.__module__, ListInlineModel.__name__)))