[Zope3-dev] adaptation based on class rather than interface
Chris Withers
chris at simplistix.co.uk
Thu Nov 9 06:34:35 EST 2006
Lennart Regebro wrote:
> Sorry about the premature sending, I don't know what button I pressed...
>
> Here we go again:
>
> So instead of making a marker interface, which is two lines of code,
> and two registrations, a total of six lines (with the imports), you
> have an extra ZCML registration statement, which is three lines of
> code. So you save three lines of code.
Why do you say "extra" ZCML registration? You need that ZCML
registration whether or not you have to write the marker interface...
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope3-dev
mailing list