On Nov 29, 2007 1:07 PM, Roger Ineichen <[EMAIL PROTECTED]> wrote: > You can use the adapter directive for this. > > class IHeaderProvider(zope.contentprovider.interfaces.IContentProvider): > """Header provider.""" > > class HeaderProvider(object): > """Header content provider.""" > > zope.interface.implements(IHeaderProvider) > zope.component.adapts(zope.interface.Interface, IMySkinBrowserLayer, > zope.interface.Interface) > > <zope:adapter > name="IHeaderProvider" > factory=".header.HeaderProvider" > /> >
Thanks. Now I understand. A simple content provider is nothing but a normal adapter which adapts to IContentProvider. -- Hong Yuan 大管家网上建材超市 装修装潢建材一站式购物 http://www.homemaster.cn
_______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users