Re: [Modeling-users] Foreign Keys
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2003-07-22 15:48:53
|
Sorry, my fault, just a typo: the test should read: if master.isFault() and ec.parentObjectStore().__class__!=EditingContext: ^^^^ Yannick Gingras <yan...@sa...> wrote: > On July 22, 2003 02:52 am, you wrote: > > these restrictions, it can accelerate the change: > > >>> i18n = I18N() > > >>> ec.insert(i18n) > > >>> master=ec.faultForRawRow(masterSnapshot) > > >>> if master.isFault() and > > >>> ec.parentObjectStore().__class__==EditingContext: > > > > ... 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 = EditingContext() > > What have I done wrong ? > > : \ > > -- > Yannick Gingras > Byte Gardener, Savoir-faire Linux inc. > (514) 276-5468 |