Re: Declaring and using a nested EditingContext

Sébastien Bigaret <[email protected]> Wed, 05 Jul 2006 16:53:28 +0200
Newsgroups gmane.comp.python.modeling
Message-ID <[email protected]>
   Hi Paul & all,

[email protected] wrote:
[...]
> However, I can't quite get what is meant by the sentence:
> =

>   - the states of the objects in the result set will reflect any changes =

> made to them in the parent object store, even the uncommitted ones.
> =

>  From testing, when I change an object held by the parent EC, and then =

> do a fetch on that object in the child, the change is not shown in the =

> object held by the child EC.

Your understanding is correct, and the changes should appear in the child c=
ontext. If they are not, it is definitely a bug.

Could you please send me your example, where the bug appear?  This is somet=
hing I did not observe from now on, and I'll be glad to examine and fix it.

    Cheers,

-- S=E9bastien.


PS: Oh, BTW, this is tested in tests/test_EditingContext_ParentChildpy, met=
hod test_03_fetchedAndModifiedObjectsInParent()

[email protected] a =E9crit :
> Hi all,
> =

> I am reading chapter "5.2 Declaring and using a nested EditingContext" =

> in the user guide on the web:
> =

> http://modeling.sourceforge.net/UserGuide/nested-ec-usage.html
> =

> I understand and can verify by testing (I am using modeling release 0.9) =

> that:
> =

> 1. Inserting an object in the parent EC will show up in a fetch in the =

> child EC.
> =

> 2. Deleting an object in the parent EC deletes it from the result set in =

> the child EC.
> =

> However, I can't quite get what is meant by the sentence:
> =

>   - the states of the objects in the result set will reflect any changes =

> made to them in the parent object store, even the uncommitted ones.
> =

>  From testing, when I change an object held by the parent EC, and then =

> do a fetch on that object in the child, the change is not shown in the =

> object held by the child EC.
> =

> Can anyone get me on the right track here?
> =

> And last, but not least, thanks for all the work on this magnificent =

> framework :-)
> =

> Cheers
> Paul
> =

> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job ea=
sier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> Modeling-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/modeling-users
> =

> =



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642