On Tue, Dec 09, 2008 at 05:11:38PM +0000, Richard Cooke wrote:
> Can I insert this relationship the other way round at all? How could I 
> specify that rBirds is a child of rPets instead of specifying that rPets 
> is the parent of rBirds? I tried:
> 
> rPets.addChildren(rBirds)
> 
> But addChildren apparently isn't an attribute.

   add*() and remove*() functions are added for RelatedJoins only.
ForeignKey/MultipleJoin just don't need them (but you can implement them
yourself, of course).

class rPets(SQLObject):
   def addChildren(self, rBirds):
      rBirds.parent = self

(just for example)

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to