[Zope] Acquisition not working as expected
Andrew Milton
akm at theinternet.com.au
Fri Mar 3 05:17:10 EST 2006
+-------[ Roman Klesel ]----------------------
| Andrew Milton schrieb:
| > How about you forget about Acquisition for now.
| >
|
| Well, hmmm ... this will be hard ... I was just about to fall in love with it ...
It's definitely useful, but, you have to pick your moments to use it.
| > Define the method in the class you want to call it on.
|
| Then I will have to subclass from OFS.Image.File and I was told that this is somehow evil. From a previous thread:
|
| Roman Klesel wrote:
| >> form OFS.Image import File
| >>
| >> - I build a class _File(File):
|
| >I really doubt you need to do that...
|
| >> - pimped it up a little bit.
|
| >What, specifically, did you add?
|
| >> - _setObject'ed it
|
| >You shouldn't be calling that directly...
Well you have to decide who to believe then won't you ? d8)
| I was really hoping to get to understand this acquisition thing.
| Am I really that far away from getting it? What does it take to grasp it?
Think of Acquisition this way; read-only, run-time, inheritance.
--
Andrew Milton
akm at theinternet.com.au
More information about the Zope
mailing list