[Grok-dev] Naming of grok.provides
Sebastian Ware
sebastian at urbantalk.se
Tue Oct 14 04:47:39 EDT 2008
:) My confusion acctually has to do with the grok.provides()
directive, which I find difficult to relate to the providedBy() method.
I don't understand why I use grok.provides for an adapter and
interface.implements on an object. Then I use providedBy to check if
the object belongs to a class that implements... in the docstring it
does say something like implementedBy(MyClass) and
providedBy(MyObject) so I think I get how I am supposed to use it (it
works anyway), but it is really related the grok.provides directive I
am struggeling.
Mvh Sebastian
14 okt 2008 kl. 09.58 skrev Philipp von Weitershausen:
> Sebastian Ware wrote:
>> 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).
>
> Well, this difference is one of the corner stones of zope.interface
> and not about to change :). I think the difference is pretty clear,
> it just needs to be documented well.
More information about the Grok-dev
mailing list