Philipp von Weitershausen wrote:
> I've personally thought for some time that it would be quite nice if  
> all you had to do was call an interface to look up a utility (which is  
> sort of a multi-adapter of order 0) or to do some kind of adaption, no  
> matter how many objects you wanted to adapt. E.g.:

+sys.maxint. This is nice.

>    auth = IAuthentication()                                 # utility
>    auth = IAuthentication(default=None)
>    langs = IUserPreferredLanguages(request)                 # adapter
>    langs = IUserPreferredLanguages(request, default=None)
>    view = IBrowserPage((obj, request), name='index')        # named  
> multi-adapter

Right, but how do you differentiate adapting a tuple to IBrowserPage 
versus adapting obj and request together to IBrowserPage?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to