Ejemplo n.º 1
0
 class Model(tests.UUIDAutoModel):
     set = sheraf.SetAttribute(
         sheraf.SetAttribute(
             sheraf.StringAttribute(),
             persistent_type=persistent_type,
         ),
         persistent_type=persistent_type,
     ).index()
Ejemplo n.º 2
0
class UniqueSetParent(tests.IntAutoModel):
    children = sheraf.SetAttribute(
        sheraf.ModelAttribute("UniqueSetChild")).index(unique=True)
Ejemplo n.º 3
0
class MultiSetParent(tests.UUIDAutoModel):
    children = sheraf.SetAttribute(
        sheraf.ModelAttribute("MultiSetChild")).index()
Ejemplo n.º 4
0
class BadParent(tests.UUIDAutoModel):
    child = sheraf.SetAttribute(sheraf.SimpleAttribute()).index()
Ejemplo n.º 5
0
 class Model(tests.UUIDAutoModel):
     inlines = sheraf.SetAttribute(sheraf.InlineModelAttribute(SetInlineModel))
Ejemplo n.º 6
0
 class Model(tests.UUIDAutoModel):
     inline = sheraf.SetAttribute(
         sheraf.InlineModelAttribute("anticonstitutionnellement")
     )
Ejemplo n.º 7
0
 class Model(tests.UUIDAutoModel):
     set = sheraf.SetAttribute(
         attribute=sheraf.IntegerAttribute(), persistent_type=persistent_type
     )
Ejemplo n.º 8
0
 class Model(tests.UUIDAutoModel):
     set = sheraf.SetAttribute(subattribute, persistent_type=persistent_type)
Ejemplo n.º 9
0
 class Model(tests.UUIDAutoModel):
     submodels = sheraf.SetAttribute(
         sheraf.ModelAttribute(Submodel),
         persistent_type=persistent_type,
     ).index()
Ejemplo n.º 10
0
 class Model(tests.UUIDAutoModel):
     models = sheraf.SetAttribute(sheraf.ModelAttribute(AModel))
Ejemplo n.º 11
0
 class AnotherModel(tests.UUIDAutoModel):
     a_set_for_test = sheraf.SetAttribute(sheraf.ModelAttribute(model))