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
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to