The methods auto-magically created for RelatedJoins (addBlah and
removeBlah) are very useful. Is there an equivalent for membership
testing? Something like hasBlah?

For example:

class Foo(SQLObject):
    bars = RelatedJoin("Bar")

class Bar(SQLObject):
    foos = RelatedJoin("Foo")

foo = Foo.get(1)
bar = Bar.get(1)

if foo.hasBar(bar):
    # do something cool

Thanks,
Brian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to