[orm-devel] one2one - second
Werner F. Bruhin
Mon, 03 Mar 2003 17:59:25 +0100
Just tried something else.
p = ds.selectByPrimaryKey(parent, 1)
The p.child.child_data gives the error.
child2 = child(id=3, child_data="child2 data")
p.child = child2
This one works, so problem is not with the class definition (i.e.
original code "child": one2one(child), is therefore correct, but
problem is related to selectByPrimaryKey.
I think it is tea time again (don't think I am English, I am actually
Swiss German), as I obviously am missing something.