Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Cyril Elkaim
Erik, >What do you need the reference for? How are you going to use it? And >when you're talking about «inside ZODB», does that mean that you're >not using Zope to access it? I'm using Zope but I made up my application by components. So I want to access an object anywhere

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge
[Cyril Elkaim] | I want to give the id (eventually qualified) of an object and get a | reference to it. I'm talking about persistent objects inside the | ZODB. What do you need the reference for? How are you going to use it? And when you're talking about «inside ZODB», does that mean that you'

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Cyril Elkaim
Eric, Thanks that works :-) And you know what I've tried that before posting but inside the test tab of my zclass. I should tried it inside the client Folder. Anyway that's OK. >I'm not quite sure what you mean, could you elaborate please? Do you >mean like you want t

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Tom Jenkins
Do you mean the aq_parent? I believe that is the property that you want. Cyril Elkaim wrote: >Hi all, > > My question is in the title. I think I'm stupid because I have really searched > anywhere, and found nothing. The answer is certainly trivial but too many hours > you know... :-)

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge
[Cyril Elkaim] | Of course I have tried REQUEST.PARENTS[0] but this is the parent | inside the URL, I'm searching the PARENT inside the object system. yourobject.getParentNode() should do the trick. Have a read at lib/python/OFS/ZDOM.py | Another question how can I get a reference of any obje

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Morten W. Petersen
[Cyril Elkaim] |Hi all, Hia Cyril, [snip] | Aside from my problems Zope rocks really. Yes it does. And you can find usable information in $ZOPE_INSTANCE/lib/python/OFS/ZDOM.py . Hope this helps, Morten ___ Zope-Dev maillist - [EMAIL PR

[Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Cyril Elkaim
Hi all, My question is in the title. I think I'm stupid because I have really searched anywhere, and found nothing. The answer is certainly trivial but too many hours you know... :-) I'm able to get all the children of the current container or context but unable to get its parent. Maybe