[Zope3-Users] adaptation/containers question

ksmith93940-dev at yahoo.com ksmith93940-dev at yahoo.com
Thu Nov 9 18:32:55 EST 2006


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

    def __init__(self, context):
        self.context = context


configure.zcml

    <adapter
            for="zope.app.file.interfaces.IImage"
              factory=".myclass.ImageBlogAdapter"
            provides=".interfaces.IBloggable"
            />



Thank you.

Kevin Smith





More information about the Zope3-users mailing list