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
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
>>
>>
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
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
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
5 matches
Mail list logo