Hi there,
I am trying to follow the setup in this example
http://www.sqlalchemy.org/trac/browser/examples/beaker_caching to
enable beaker caching in sqlalchemy. However, I ran into an issue.
#1. When I try to cache a relation that happens to be an association
proxy I get the following error:
AttributeError: 'AssociationProxy' object has no attribute 'property'
This is how my query looks like:
def get_user(user_id):
return Session.query(User).\
options(FromCache('default', 'user')).\
options(RelationshipCache('default', 'user_groups',
User.groups)).\
get(user_id)
Anyone ran into this problem?
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.