- extensions
- big fix to AssociationProxy so that multiple AssociationProxy
objects can be associated with a single association collection.
+ - assign_mapper names methods according to their keys (i.e. __name__)
+ #551
0.3.6
- sql:
- bindparam() names are now repeatable! specify two
def do(self, *args, **kwargs):
query = Query(class_, session=ctx.current)
return getattr(query, name)(*args, **kwargs)
+ do.__name__ = name
setattr(class_, name, classmethod(do))
def monkeypatch_objectstore_method(ctx, class_, name):
# flush expects a list of objects
self = [self]
return getattr(session, name)(self, *args, **kwargs)
+ do.__name__ = name
setattr(class_, name, do)
def assign_mapper(ctx, class_, *args, **kwargs):