[Zope3-dev] help with directlyProvides

Jean-Marc Orliaguet jmo at ita.chalmers.se
Fri May 5 00:44:50 EDT 2006


luis wrote:

>Hi all,
>
>I asked this a while ago in the zope3.user list but had no luck, so I'll try
>it here now..
>
>I'm having problems getting interface.directlyProvides to work...
>does anyone know why the following code doesn't work (file is created, but
>it doesnt provide the IMarker interface...)
>
>thanks and regards,
>luis
>
>###########
>class IMarker(interface.Interface):
>    """ marker test interface """
>    
>  
>


Hi, shouldn't it be, instead:

from zope.interface.interfaces import IInterface

class IMarker(IInterface):
    ...

/JM


More information about the Zope3-dev mailing list