Hmm, it seems I don't have a problem after all. I have just changed my code to this again and it works. I was sure I'd already tried this approach and got an error.
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. Thanks. Oleg Broytmann wrote: > On Tue, Dec 09, 2008 at 03:30:58PM +0000, Richard Cooke wrote: > >> rBirds = prodcats.new(name="birds", longname="Birds") >> rBirds.parent = rPets >> > > It is possible if the default for the column is None. What problems do > you have? > > Oleg. > ------------------------------------------------------------------------------ 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