[Grok-dev] Naming of grok.provides
Sebastian Ware
sebastian at urbantalk.se
Mon Oct 13 09:02:54 EDT 2008
I find the difference between implements/provides confusing too. And
it gets more complicated when trying to understand the difference
between IMyInterface.providedBy(obj) and
IMyInterface.implementedBy(obj).
Mvh Sebastian
13 okt 2008 kl. 08.19 skrev Thomas Lotze:
> We recently noticed that the grok.provides directive is not well-
> named:
>
> The documentation states that "if the local utility implements
> more than one interface or if the implemented interface cannot be
> determined, grok.provides() is required to disambiguate for what
> interface the local utility will be registered."
>
> OTOH, in zope.interface terminology, the term "provides" has a clear
> meaning in contrast to "implements": if a class, for instance,
> implements a certain interface, its instances are said to provide it.
>
> We feel that something should be done about this contradiction of
> terminologies as it confuses not only newcomers to Grok. Beyond a
> documentation improvement, what would be an acceptable fix given that
> this directive is rather close to Grok's core?
>
> Thomas
>
> --
> Thomas Lotze · tl at gocept.com
> gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) ·
> germany
> http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
> Zope and Plone consulting and development
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list