On 11/9/06, Jean-Marc Orliaguet <[EMAIL PROTECTED]> wrote:
Lennart Regebro wrote:
> On 11/9/06, Chris Withers <[EMAIL PROTECTED]> wrote:
>> Why do you say "extra" ZCML registration? You need that ZCML
>> registration whether or not you have to write the marker interface...
>
> Sure, but with the marker interface you need only one. You need one
> for each class, in your example, thats two. So the second one is
> "extra". :)
>

I think it is a mistake to use interfaces to specify what object _are_
as opposed to what they can _do_. It is better to use base classes for
that.

Yeah, but in this example there are no base classes available, as I
understand it.
So it's perfectly feasible to marl something with a marker interface
to say "this can be adapted to X". It is a "can do" marking, not an
"is" marking, IMO.

--
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.nuxeo.org/
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to