class FakeThing(JsonRecord):
     att_a = JsonProperty()
     att_b = JsonProperty()
     att_c = JsonListProperty(of=FakeItem)
Beispiel #2
0
 class JLR(Record):
     item_list = JsonListProperty(of=Item)
     string_list = JsonListProperty(of=basestring)
Beispiel #3
0
 class WayRecord(JsonRecord):
     down = JsonListProperty(of=SomeOtherRecord)
Beispiel #4
0
 class EnumsGalore(JsonRecord):
     my_enum = JsonProperty(isa=MyEnum.EnumValue)
     enum_list = JsonListProperty(of=MyEnum.EnumValue)
     enum_map = JsonDictProperty(of=MyEnum.EnumValue)
Beispiel #5
0
 class SomeRecord(JsonRecord):
     some_list = JsonListProperty(of=CheeseRecord)
     some_map = JsonDictProperty(of=CheeseRecord)