[Grok-dev] directlyProvides

Christian Theune ct at gocept.com
Mon Mar 26 02:37:54 EDT 2007


Am Montag, den 26.03.2007, 10:55 +1200 schrieb Darryl Cousins:
> Hi,
> 
> I must be dense but I can't see how to use directlyProvides in grok. In
> doctest I would do:
> 
> directlyProvides(IMyInterface, IContentType)

That's the spelling you can use in grok as well.

> and in zcml I would have done:
> 
> <interface interface=".IMyInterface"
>            type="zope.app.content.IContentType" />

You could use that too. ;) 

-- 
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20070326/08d23b80/attachment.bin


More information about the Grok-dev mailing list