[Zope3-dev] Question on new feature

Gintautas Miliauskas gintas at pov.lt
Sat Feb 5 08:22:04 EST 2005


Hello,

>  - Added an API for declaring interfaces adapted by classes
> 
> What is this?

I think it is about the adapts() function.  Basically, just as you can
specify which interfaces a class implements by using implements(), you
can specify what interfaces the class can adapt by using adapts().  Then
you don't need to supply the adapted & provided interfaces when you
register the adapter. See src/zope/component/README.txt for some
examples.

-- 
Gintautas Miliauskas <gintas at pov.lt>
Programmers of Vilnius
http://gintasm.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: =?iso-8859-2?Q?=A9i?= =?iso-8859-2?Q?_lai=B9ko?= dalis
	yra =?iso-8859-2?Q?pasira=B9yta?= skaitmeniniu =?iso-8859-4?Q?b=FEdu?=
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20050205/7379cf50/attachment.bin


More information about the Zope3-dev mailing list