[SQLObject] Having a many to many relation as a Set
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Helio MC P. <hel...@gm...> - 2005-12-03 16:27:36
|
Hi all, I have a problem related with many-to-many relation. Have searched in this list and see that my problem is the same in this thread: http://sourceforge.net/mailarchive/forum.php?thread_id=3D9049958&forum_id= =3D30269 """ >>> foo =3D User(username=3D"foo") >>> admin =3D Role(name=3D"admin") >>> foo.addRole(admin) >>> foo.roles [admin] >>> foo.addRole(admin) [admin, admin] <----- Duplicate !!!! """ Can anyone point me to another way of doing this? Thanks, Helio Pereira |