[Zope] Link between object

Dominique Jouniot dominique.jouniot@club-internet.fr
Sat, 2 Feb 2002 05:42:18 +0100


On Friday 01 February 2002 09:07, you wrote:
> Dominique Jouniot wrote:
> >On Thursday 31 January 2002 08:23, you wrote:
> >>Dominique Jouniot wrote:
> >>>Hello all,
> >>>
> >>>This is perhaps a newbie question (i am a newbie !!!).
> >>>I am looking for a solution to link an object (an image or a file by
> >>>exemple) present in a zope folder to an other folder (like the ln
> >>> command in unix). The idea is to have the possibility to destroy the
> >>> original object and all the link in the same action.
> >>>Is it possible with the ZODB ?
> >>
> >>obj=MyObject()
> >>folder1._setObject("id1", obj)
> >>folder2._setObject("id2", obj)
> >>
> >>This should work. At least in a python product. But you need to keep
> >>track of where you added your object.
> >>The garbage collection whon't delete is as long there is one reference
> >>to obj.
> >>
> >>An other way is to use mxmRelation.
> >>I am developing a BTree based mxmRelation right now. Might need some
> >>more days to get
> >>it out.
> >>
> >> thomas
> >
> >hello thomas,
> >
> >Thank for your response.I had soon think about the first solution.
> >Could you say what is mxmRelation ?
>
> http://www.zope.org/Members/maxm/productList/mxmRelations
>
> (Dominique, please always reply to zope@zope.org. Other people might
> have to same question,
> and maybe someone would have answered your question quicker than me.)
>
>  thomas


Thank you thomas for your help, and all my apologies to the others. I will do 
it next time.

Dominique