[Zope3-dev] help with directlyProvides
Jean-Marc Orliaguet
jmo at ita.chalmers.se
Fri May 5 01:03:53 EDT 2006
Jean-Marc Orliaguet wrote:
> 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
sorry I thought you wanted to do something else.. maybe you want to use
'alsoProvides' if it is to set a marker, to avoid removing other
interfaces that the file might provide?
/JM
More information about the Zope3-dev
mailing list