Re: [Modeling-users] Foreign Keys
Status: Abandoned
Brought to you by:
sbigaret
From: Yannick G. <yan...@sa...> - 2003-07-22 15:41:56
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On July 22, 2003 02:52 am, you wrote: > these restrictions, it can accelerate the change: > >>> i18n =3D I18N() > >>> ec.insert(i18n) > >>> master=3Dec.faultForRawRow(masterSnapshot) > >>> if master.isFault() and > >>> ec.parentObjectStore().__class__=3D=3DEditingContext: > > ... i18n.setMaster(master) > ... else: > ... i18n.addObjectToBothSidesOfRelationshipWithKey(master, 'master') Why does my EditingContext's parentObjectStore() is not an EditingContext ? >>> print ec.parentObjectStore().__class__ Modeling.ObjectStoreCoordinator.ObjectStoreCoordinator it's created with : ec =3D EditingContext() What have I done wrong ? : \ =2D --=20 Yannick Gingras Byte Gardener, Savoir-faire Linux inc. (514) 276-5468 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/HVtCrhy5Fqn/MRARAl97AJ9pZ1UkMziHr581ADE99GI2oJ4/UACgi5Ns aEgkj0VHn2ndcLhjofgV1oY=3D =3DH2l3 =2D----END PGP SIGNATURE----- |