Hi all:
I'm trying to implement a permission system usign polymorphic associations. In my example only one object has permissions associated (ULine). The problem is trying to use a mapping with permission names as keys, and values Permission objects with a 1:1 user relation.
A complete example here:

http://pastebin.com/SqCfBCFp

But I can't get this working, the next error is raised:

    child_state, child_dict = instance_state(child), \
AttributeError: 'list' object has no attribute '_sa_instance_state'

A lot of thanks.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to