[Zope] Acquisition not working as expected

Andrew Milton akm at theinternet.com.au
Thu Mar 2 17:39:20 EST 2006


+-------[ Roman Klesel ]----------------------
| Hello,
| 
| Roman Klesel schrieb:
|  > I can call this method on whatever folder inside the product instance I want, it will always return the id of the
| > product and not the id of the product I call it on.
| 
| In order to make my problem more obvious I created a minimal product. See attachmet.
| 
| It displays exactly the problem I'm facing:
| 
| A method in the base class that returns self.id, returns the id of the base class on all subfolders it is called.

That's the way acquisition works. I'm not sure why you want this, since
everything you're adding has an id already, so there's no need to acquire any
method to get the id.

Perhaps if you describe the problem you're trying to solve, we can actually
help you.

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list