Re: [Zope-dev] getitem in python script

2002-05-14 Thread Leonardo Rochael Almeida
First some politics: 1. please,don't send html e-mail 2. this question is better suited to [EMAIL PROTECTED] Now for your answer: getitem isn't a normal zope method. It's an _ method, but the _ object is not usually what you want to use in a PythonScript. you either want: getattr(container, '

[Zope-dev] getitem in python script

2002-05-14 Thread Eddie Moench
is there a possibility to use the getitem method in python scripts?   My concrete problem is as follows: I have a parameter – say folder – as input and just want to jump into that folder: the script:   return container.getitem(‘folder’).id   does not work! Has anyone a solution?