[Zope3-Users] How to manually define an object's provided interfaces?

Lennart Regebro regebro at gmail.com
Mon May 29 10:02:39 EDT 2006


On 5/29/06, Frank Burkhardt <fbo2 at gmx.net> wrote:
> Different factories won't help because the user should be able to update
> the file object's content after ist was created.

Yeah, that's what I suspected. I still have the feeling there must be
a better way, but I have no answers now. :)

>  I want to make an object provided one interface (IFile) always and one
>  interface (IImage) "sometimes". Sometimes means "whenever libmagic thinks,
>  the file is an Image". I don't want to modify any interface but only the
>  object's list of provided interfaces.

That is certainly possible, even if I don't like it. :-P

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope3-users mailing list