- changed status to resolved
Add 'instances' to the supported methods in the assignmapper extension
Issue #433
resolved
I am using 'instances' to do Result-Set Mapping and found it useful to add it to the monkeypatch list in assign_mapper:
--- assignmapper.py (revision 2230)
+++ assignmapper.py (working copy)
@@ -34,7 +34,7 @@
extension = ctx.mapper_extension
m = mapper(class_, extension=extension, *args, **kwargs)
class_.mapper = m
- for name in ['select', 'select_by', 'selectone', 'get_by', 'join_to', 'join_via', 'count', 'count_by', 'options']('get',):
+ for name in ['select', 'select_by', 'selectone', 'get_by', 'join_to', 'join_via', 'count', 'count_by', 'options']('instances','get',):
monkeypatch_query_method(ctx, class_, name)
for name in ['delete', 'expire', 'refresh', 'expunge', 'merge', 'save', 'update', 'save_or_update']('flush',):
monkeypatch_objectstore_method(ctx, class_, name)
Comments (1)
-
repo owner - Log in to comment
changeset:2232...more easy ones !