[Zope3-dev] adaptation based on class rather than interface
Lennart Regebro
regebro at gmail.com
Thu Nov 9 06:20:04 EST 2006
On 11/9/06, Chris Withers <chris at simplistix.co.uk> wrote:
> I'm expecting people to say "NO!" very loudly, but I'm interested in the
> real reasons for why this is bad.
Well.... it removes the possibility of switching out the class, which
begs the question why you would have an adapter in the first place. If
you have a strict one to one relationship between the class and the
adapter, why not just implemetent the desired functionality directly
in the class?
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.nuxeo.org/
More information about the Zope3-dev
mailing list