Did I find the right examples for you? yes no

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)
Create a new collection with keying provided by keyfunc.

keyfunc may be any callable any callable that takes an object and
returns an object for use as a dictionary key.

The keyfunc will be called every time the ORM needs to add a member by
value-only (such as when loading instances from the database) or
remove a member.  The usual cautions about dictionary keying apply-
``keyfunc(object)`` should return the same output for the life of the
collection.  Keying based on mutable properties can result in(more...)

src/m/e/megrok.rdb-0.12/src/megrok/rdb/components.py   megrok.rdb(Download)
        else:
            keyfunc = default_keyfunc
        MappedCollection.__init__(self, keyfunc=keyfunc)
 
    @collection.on_link

src/k/i/kitsune-HEAD/vendor/packages/sqlalchemy/test/orm/test_collection.py   kitsune(Download)
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda e: e.a)
                util.OrderedDict.__init__(self)
 
        self._test_adapter(MyOrdered, self.dictable_entity,
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda v: v.a)
                util.OrderedDict.__init__(self)
        collection_class = Ordered
        self._test_scalar_mapped(collection_class)
 
    def test_mixin2(self):
        class Ordered2(util.OrderedDict, collections.MappedCollection):
            def __init__(self, keyfunc):
                collections.MappedCollection.__init__(self, keyfunc)

src/l/u/LuoYunCloud-HEAD/lyweb/lib/SQLAlchemy-0.8.2/test/orm/test_collection.py   LuoYunCloud(Download)
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda e: e.a)
                util.OrderedDict.__init__(self)
 
        self._test_adapter(MyOrdered, self.dictable_entity,
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda v: v.a)
                util.OrderedDict.__init__(self)
        collection_class = Ordered
        self._test_scalar_mapped(collection_class)
 
    def test_mixin2(self):
        class Ordered2(util.OrderedDict, collections.MappedCollection):
            def __init__(self, keyfunc):
                collections.MappedCollection.__init__(self, keyfunc)

src/k/u/kuma-lib-HEAD/packages/sqlalchemy/test/orm/test_collection.py   kuma-lib(Download)
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda e: e.a)
                util.OrderedDict.__init__(self)
 
        self._test_adapter(MyOrdered, self.dictable_entity,
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda v: v.a)
                util.OrderedDict.__init__(self)
        collection_class = Ordered
        self._test_scalar_mapped(collection_class)
 
    def test_mixin2(self):
        class Ordered2(util.OrderedDict, collections.MappedCollection):
            def __init__(self, keyfunc):
                collections.MappedCollection.__init__(self, keyfunc)

src/i/n/input-lib-HEAD/packages/sqlalchemy/test/orm/test_collection.py   input-lib(Download)
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda e: e.a)
                util.OrderedDict.__init__(self)
 
        self._test_adapter(MyOrdered, self.dictable_entity,
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda v: v.a)
                util.OrderedDict.__init__(self)
        collection_class = Ordered
        self._test_scalar_mapped(collection_class)
 
    def test_mixin2(self):
        class Ordered2(util.OrderedDict, collections.MappedCollection):
            def __init__(self, keyfunc):
                collections.MappedCollection.__init__(self, keyfunc)

src/s/q/SQLAlchemy-0.9.4/test/orm/test_collection.py   SQLAlchemy(Download)
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda e: e.a)
                util.OrderedDict.__init__(self)
 
        self._test_adapter(MyOrdered, self.dictable_entity,
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda v: v.a)
                util.OrderedDict.__init__(self)
        collection_class = Ordered
        self._test_scalar_mapped(collection_class)
 
    def test_mixin2(self):
        class Ordered2(util.OrderedDict, collections.MappedCollection):
            def __init__(self, keyfunc):
                collections.MappedCollection.__init__(self, keyfunc)

src/s/q/sqlalchemy-HEAD/test/orm/test_collection.py   sqlalchemy(Download)
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda e: e.a)
                util.OrderedDict.__init__(self)
 
        self._test_adapter(MyOrdered, self.dictable_entity,
            def __init__(self):
                collections.MappedCollection.__init__(self, lambda v: v.a)
                util.OrderedDict.__init__(self)
        collection_class = Ordered
        self._test_scalar_mapped(collection_class)
 
    def test_mixin2(self):
        class Ordered2(util.OrderedDict, collections.MappedCollection):
            def __init__(self, keyfunc):
                collections.MappedCollection.__init__(self, keyfunc)