[Zope-dev] Reasons for the current API reference docs
implementation?
Stephan Richter
stephan.richter at tufts.edu
Sun Apr 4 16:21:16 EDT 2004
On Sunday 04 April 2004 15:23, Paul Winkler wrote:
> > Yeah, I guess the best way would be to do interfaces. Then you can use
> > parts of the Zope 3 API documentation tool (actually all of the Interface
> > and Class doc module) and generate docs.
>
> I note in lib/python/Interfaces/IInterface.py, there are several
> ways to declare interfaces currently. Is one of these preferred?
>
> class FooBar:
> implements(IFoo, IBar)
This is the only way used in Zope 3.
>
> class FooBar:
> __implements__ = (IFoo, IBar)
This is mainly for backward-compatibility, I understand.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope-Dev
mailing list