Mercurial > kallithea
diff rhodecode/model/caching_query.py @ 1365:cd865113423e beta
applied caching query update from latest sqlalchemy
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 06 Jun 2011 17:30:34 +0200 |
parents | e861eb1c4a2f |
children |
line wrap: on
line diff
--- a/rhodecode/model/caching_query.py Sun Jun 05 02:12:19 2011 +0200 +++ b/rhodecode/model/caching_query.py Mon Jun 06 17:30:34 2011 +0200 @@ -276,6 +276,7 @@ v = [] def visit_bindparam(bind): value = query._params.get(bind.key, bind.value) + # lazyloader may dig a callable in here, intended # to late-evaluate params after autoflush is called. # convert to a scalar value. @@ -285,6 +286,4 @@ v.append(value) if query._criterion is not None: visitors.traverse(query._criterion, {}, {'bindparam':visit_bindparam}) - for f in query._from_obj: - visitors.traverse(f, {}, {'bindparam':visit_bindparam}) return v