Anyone know of another sqlalchemy + beaker example I can look it?

On Jul 27, 2:05 pm, espresso maker <[email protected]> wrote:
> Hi there,
>
> I am trying to follow the setup in this 
> examplehttp://www.sqlalchemy.org/trac/browser/examples/beaker_cachingto
> 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.

Reply via email to