[Zope3-Users] adaptation/containers question

2006-11-09 Thread ksmith93940-dev
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

Re: [Zope3-Users] adaptation/containers question

2006-11-09 Thread Tom Dossis
[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): > >

Re: [Zope3-Users] adaptation/containers question

2006-11-09 Thread ksmith99
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.. > >