[Zope-dev] Re: AW: Doc strings of IContentProvider
Thomas Lotze
thomas at thomas-lotze.de
Sat Nov 17 06:38:16 EST 2007
Roger Ineichen wrote:
> The IContentProvider interfaces is a marker interface which describes what
> a component must support that it get collected by the Tales Expression.
As an aside, I think that a marker interface is one that doesn't describe
any interface elements at all, but just there to, well, mark some class or
object.
> We
> didn't define the __init__ signature because we didn't know if there are
> other usecases which will need different adaption later and it's also not
> common to restrict the __init__. But we should do that if we change
> something.
Well, I thought we had agreed in that earlier discussion that __init__
should never be specified in an interface as it describes how an object is
constructed in contrast to how it behaves during its lifetime?
> I'm not really sure what you are trying to do or improve.
In the case of IContentProvider, I'm pretty sure the interface is talking
about things it shouldn't. What I was trying to do is some minor clean-up
for the sake of doing things right.
> Any new ideas are welcome, the description above doesn't mean we can't
> improve something.
Fine, but I admit I don't have the energy to start that
__init__-and-interface discussion again. Unless we agree on that, I'll
just let the matter rest.
--
Thomas
More information about the Zope-Dev
mailing list