Example #1
0
        class TestBuilder(object):
            next = One('prev')
            prev = One('next')

            def __init__(self, name, other=None):
                self.name = name
                self.other = other

            def __str__(self):
                return self.name
Example #2
0
        class Test(object):
            other = One('other')

            def __init__(self, name):
                self.name = name

            def __str__(self):
                return self.name
Example #3
0
 class EndPoint(object):
     prev = One('next')
Example #4
0
 class StartPoint(object):
     next = One('prev')
Example #5
0
        class TestOneMany(object):
            parent = One('children')
            children = ManyMap('parent')

            def __init__(self, name):
                self.name = name
Example #6
0
        class TestMany(object):
            one = One('one', install=True)

            def __init__(self, name):
                self.name = name
Example #7
0
        class TestOne(object):
            next = One()

            def __init__(self, name):
                self.name = name
Example #8
0
        class TestOne(object):
            next = One('prev')
            prev = One('next')

            def __init__(self, name):
                self.name = name
Example #9
0
        class TestOneOne(object):
            left = One('right')
            right = One('left')

            def __init__(self, name):
                self.name = name
Example #10
0
class Chained(object):
    next = One('prev')
    prev = One('next')