class Test(object): nexts = ManyMap('prevs') prevs = ManyMap('nexts') def __init__(self, name): self.name = name def __repr__(self): return self.name
class TestBuilder(object): nexts = ManyMap('prevs') prevs = ManyMap('nexts') def __init__(self, name, iterable=()): self.name = name self.items = list(iterable) def extend(self, *items): self.items.extend(items) def __str__(self): return self.name
class Test(object): others = ManyMap('others') def __init__(self, name): self.name = name def __str__(self): return self.name
class TestBuilder(object): nexts = ManyMap() def __init__(self, name, iterable=()): self.name = name self.items = list(iterable) def extend(self, *items): self.items.extend(items)
class TestMany(object): nexts = ManyMap(on_link=on_link, on_unlink=on_unlink) def __init__(self, name): self.name = name
class TestMany(object): nexts = ManyMap() def __init__(self, name): self.name = name
class TestMany(object): nexts = ManyMap(cyclic=False) def __init__(self, name): self.name = name
class TestMany(object): nexts = ManyMap('prevs') prevs = ManyMap('nexts') def __init__(self, name): self.name = name
class TestMany(object): nexts = ManyMap('prevs', on_link=on_link, on_unlink=on_unlink) prevs = ManyMap('nexts') def __init__(self, name): self.name = name
class Test(object): nexts = ManyMap()
class TestOneMany(object): parent = One('children') children = ManyMap('parent') def __init__(self, name): self.name = name