Re: [Modeling-users] Interfaces
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2004-07-21 17:45:19
|
This initially came from zope (not z3 but some good old z2). When I began coding the framework, I used interfaces as a guideline for forthcoming implementations. I also used zope's Interface class to make some verifications --there's an example of this in KeyValueCoding, look at the end: try: verify_class_implementation(KeyValueCodingInterface, KeyValueCoding) except: pass Now back to z3 and twisted, I wish I had the time to discover those masterpieces, but unfortunately that's not (still!) the case... BTW if any of you have (even little) experiences w/ MDL and z3 or twisted, I'm very interested in hearing your stories! -- S=E9bastien. Ernesto Revilla <er...@si...> wrote: > Dear S=E9bastien, >=20 > in the interface files, there is a: >=20 > try: > from Interface import Base > except: > class Base: > pass >=20 > I can't any Interface.py. I know Twisted and Zope z3 components have so= me > interfaces. Is this aimed at one of these or your own stuff? In the > implementations we have something like: >=20 > from Modeling.interfaces.Adaptor import IAdaptor > ... > class Adaptor: > __implements__ =3D (IAdaptor,) > ... >=20 > (Sounds very much like Twisted...) >=20 >=20 > Erny |