Re: [Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Stephan Richter
On Thursday 26 May 2005 03:31, Leeuw van der, Tim wrote: > In java-terms you'd say that one interface *extends* another interface, > rather than implements. But I guess this wording is because Python doesn't > have interfaces, and therefore in your class-definition you might not see > the differenc

Re: [Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Dominik Huber
Sakesun Roykiattisak wrote: So the document does wrong. Let fix it and put my name on the contributer list... :-D Done. Thank you for the pointer. Regards, Dominik ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listi

Re: [Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Sakesun Roykiattisak
No, the interface directive uses the directlyProvides mechanism to type the interfaces. (See zope.app.component.interface.provideInterface).This function is called by the directive handler (See zope.app.component.metaconfigure.interface). Thanks a lot. IMO only the therm *provides* is co

Re: [Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Dominik Huber
Sakesun Roykiattisak wrote: Ouch.. Perhaps it use "classImplements" rather than "directlyProvides" Anybody could give me a pointer to the source code where I can find the answer ? No, the interface directive uses the directlyProvides mechanism to type the interfaces. (See zope.app.component

Re: [Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Sakesun Roykiattisak
Ouch.. Perhaps it use "classImplements" rather than "directlyProvides" Anybody could give me a pointer to the source code where I can find the answer ? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Sakesun Roykiattisak
We do not have to implement any interface that *extends* from IContentType in order to make a class become a content. class IMyContent(Interface): pass In zcml we do declare: type="zope.app.content.interfaces.IContentType"> I wonder what exactly does specifying "type" attribute do. Somehow,

RE: [Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Leeuw van der, Tim
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sakesun Roykiattisak Sent: Thursday, May 26, 2005 9:27 AM To: zope3-users@zope.org Subject: [Zope3-Users] IContentType: interface implements another interface ? From zope/app/content/interfaces: class IContentType(IInterface): "&

[Zope3-Users] IContentType: interface implements another interface ?

2005-05-26 Thread Sakesun Roykiattisak
From zope/app/content/interfaces: class IContentType(IInterface): """This interface represents a content type. If an **interface** implements this interface type, then all object implementing the interface are considered content objects. """ How can an interface implements IContentT