コード例 #1
0
 class Model(tests.UUIDAutoModel):
     set = sheraf.SetAttribute(
         sheraf.SetAttribute(
             sheraf.StringAttribute(),
             persistent_type=persistent_type,
         ),
         persistent_type=persistent_type,
     ).index()
コード例 #2
0
class UniqueSetParent(tests.IntAutoModel):
    children = sheraf.SetAttribute(
        sheraf.ModelAttribute("UniqueSetChild")).index(unique=True)
コード例 #3
0
class MultiSetParent(tests.UUIDAutoModel):
    children = sheraf.SetAttribute(
        sheraf.ModelAttribute("MultiSetChild")).index()
コード例 #4
0
class BadParent(tests.UUIDAutoModel):
    child = sheraf.SetAttribute(sheraf.SimpleAttribute()).index()
コード例 #5
0
 class Model(tests.UUIDAutoModel):
     inlines = sheraf.SetAttribute(sheraf.InlineModelAttribute(SetInlineModel))
コード例 #6
0
 class Model(tests.UUIDAutoModel):
     inline = sheraf.SetAttribute(
         sheraf.InlineModelAttribute("anticonstitutionnellement")
     )
コード例 #7
0
 class Model(tests.UUIDAutoModel):
     set = sheraf.SetAttribute(
         attribute=sheraf.IntegerAttribute(), persistent_type=persistent_type
     )
コード例 #8
0
 class Model(tests.UUIDAutoModel):
     set = sheraf.SetAttribute(subattribute, persistent_type=persistent_type)
コード例 #9
0
 class Model(tests.UUIDAutoModel):
     submodels = sheraf.SetAttribute(
         sheraf.ModelAttribute(Submodel),
         persistent_type=persistent_type,
     ).index()
コード例 #10
0
ファイル: test_model_set.py プロジェクト: yaal-fr/sheraf
 class Model(tests.UUIDAutoModel):
     models = sheraf.SetAttribute(sheraf.ModelAttribute(AModel))
コード例 #11
0
ファイル: test_model_set.py プロジェクト: yaal-fr/sheraf
 class AnotherModel(tests.UUIDAutoModel):
     a_set_for_test = sheraf.SetAttribute(sheraf.ModelAttribute(model))