#1143: SQLAlchemy Identity classes don't allow adding related objects
----------------------+-----------------------------------------------------
Reporter: plewis | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Identity | Version: 0.9a9
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
The User, Group, and Permission SQLAlchemy classes have circular
references for user, group, and permission attributes. Apparently, these
cancel each other out, and so no references can be added.
For instance, you should be able to get a user and say
{{{
user.group.append(groupObj)
}}}
But, you get an exception "'User' object has no attribute 'groups'
According to
[http://groups.google.com/group/turbogears/browse_frm/thread/5c7ec49afadfe80a/1a5b7adf4f8e64b5
this thread] the secret is to delete one of the redundant references.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1143>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---