On Wed, 13 Dec 2006 23:00:36 +0300, Oleg Broytmann hath writ:

> http://sqlobject.org/devel/FAQ.html#how-can-i-define-my-own-intermediate-table-in-my-many-to-many-relationship

Thank you Oleg!  I read through that example, and tried it out... but what
I don't see is that this makes it more convenient to access the
intermediate table.

With the database schema in the example in the FAQ, I can do:

  me=User.get(1)
  myroles=me.roles

But there's no easy way to find out which of the roles are marked as
active:

  for r in myroles:
    print "Role is active? ", r.active   # error

How would I now find out the active roles, given a User instance?
Thanks!

Dan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to