I'm trying to allow Zope3 Images in my IBlog container
I've tried many variations of the follwoing without success.
interfaces.py
class IBloggable(Interface):
""" Marker interface"""
myclass.py
class ImageBlogAdapter(object):
implements(IBloggable)
__name__ = __parent__ = None
[EMAIL PROTECTED] wrote:
> I'm trying to allow Zope3 Images in my IBlog container
>
> I've tried many variations of the follwoing without success.
>
>
> interfaces.py
>
> class IBloggable(Interface):
> """ Marker interface"""
>
>
> myclass.py
>
> class ImageBlogAdapter(object):
>
>
Awesome. That's exactly what I was looking for.
Tom Dossis wrote:
>
>
> I don't know how the container constraint works - i.e. whether it tries
> to adapt a __setitem__ object.
>
> But just in case you're not aware you can implement your marker
> interface on the Image class via zcml..
>
>