Re: [Zope3-Users] Views for adapted components

2007-03-26 Thread tom
On Monday 26 March 2007 12:57:58 pm FB wrote: > Hi, > > On Mon, Mar 26, 2007 at 12:43:21PM +0200, Lorenzo Gil Sanchez wrote: > > [snip] > > > This is not so bad. The real problem is that I have to modify the > > original IMyCompoment component to tell zope it implements IImportExport > > even when

Re: [Zope3-Users] Views for adapted components

2007-03-26 Thread FB
Hi, On Mon, Mar 26, 2007 at 12:43:21PM +0200, Lorenzo Gil Sanchez wrote: [snip] > This is not so bad. The real problem is that I have to modify the > original IMyCompoment component to tell zope it implements IImportExport > even when this is false. The adapter does it, not the compoment. But I

[Zope3-Users] Views for adapted components

2007-03-26 Thread Lorenzo Gil Sanchez
Hi everybody, I have several components and now I want to add ImportExport funcionality to some of them. So I created a simple interface called IImportExport: class IImportExport(Interface): def importFromFile(filename): pass def exportToFile(filename): pass Now, all I have to do