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

2006-06-01 Thread Stephan Richter
On Monday 29 May 2006 06:56, Frank Burkhardt wrote: > Unfortunately, there is no 'provide' method on interfaces :-( . > > Now the questions: > > 1. Is the list of a content object's provided interfaces stored > persistently in the Zodb? Yes. > 2. Is it according to Zope-, Python-, ... philosophy

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

2006-05-29 Thread Lennart Regebro
On 5/29/06, Frank Burkhardt <[EMAIL PROTECTED]> 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

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

2006-05-29 Thread Janko Hauser
Am 29.05.2006 um 14:24 schrieb Frank Burkhardt: OK - this was a bit confusing. One more try: 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 an

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

2006-05-29 Thread Frank Burkhardt
Hi, On Mon, May 29, 2006 at 01:31:03PM +0200, Lennart Regebro wrote: > On 5/29/06, Frank Burkhardt <[EMAIL PROTECTED]> wrote: > >I'm going to write an alternative implementation of > >zope.app.file.interfaces.IFile . This implementation will automatically > >determine the mime type of the data it'

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

2006-05-29 Thread Lennart Regebro
On 5/29/06, Frank Burkhardt <[EMAIL PROTECTED]> wrote: I'm going to write an alternative implementation of zope.app.file.interfaces.IFile . This implementation will automatically determine the mime type of the data it's containing. I would like to add a method that determines (guesses), if the c