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



_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to