hi 
given

class Parent(SQLObject):
        ....
        ....
        childs=MultipleJoin()

class Child(SQLObject):
        ...
        someAttrib=StringCol()
        parent=ForeignKey()


rec=Parent.get(x)

How can I see if there is a child of rec that has 'someAttrib=??'
Im a bit new to python - I notice that rec.childs is a list of child
records - I thought may be I could harness the .index method, but of
course each item in the list is an object - and not sure how to do this.

I'm kind of hoping for something along the lines of
rec.childs.SelectBy(someAttrib='bla')

thanks for any tips
glenn


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to