Re: Interface implementation in python

2012-01-04 Thread huseyin yilmaz
I Checked the zope.interface implementation. It seems like this one does not do any validation at all. consider folowing code from zope import interface class IBase(interface.Interface): def my_method(self): pass class Child(): interface.implements(IBase) if __name__ == '__mai

Re: Interface implementation in python

2012-01-04 Thread Thomas Weholt
He probably meant zope.interface :-) Regards, Thomas On Wed, Jan 4, 2012 at 1:47 PM, huseyin yilmaz wrote: > Could you direct me to an example (or documentation). I could not find > any source about zone.interface. > > On Jan 4, 2:17 pm, Donald Stufft wrote: >> Why not use zone.interface >> >>

Re: Interface implementation in python

2012-01-04 Thread huseyin yilmaz
Could you direct me to an example (or documentation). I could not find any source about zone.interface. On Jan 4, 2:17 pm, Donald Stufft wrote: > Why not use zone.interface > > > > > > > > On Wednesday, January 4, 2012 at 7:07 AM, huseyin yilmaz wrote: > > Hi everybody, > > > I want to implement

Re: Interface implementation in python

2012-01-04 Thread Donald Stufft
Why not use zone.interface On Wednesday, January 4, 2012 at 7:07 AM, huseyin yilmaz wrote: > Hi everybody, > > I want to implement interface functionality in python. I wrote > following sample code > > https://gist.github.com/1559689 > > Here I use an abc as an interface. > Couple of my models

Interface implementation in python

2012-01-04 Thread huseyin yilmaz
Hi everybody, I want to implement interface functionality in python. I wrote following sample code https://gist.github.com/1559689 Here I use an abc as an interface. Couple of my models are implementing this interface and one of my consumer model is using those models. In this implementation, I