[Zope3-checkins] Re: [Checkins] SVN: Zope3/trunk/src/zope/publisher/ Have the IVirtualHostRequest mutation methods emit an event so applications can respond to virtual host changes

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Jul 30 09:16:49 EDT 2006


Hi Martijn,

just a few comments about the checkin.

On Sunday 30 July 2006 03:48, Martijn Pieters wrote:
> +class HTTPVirtualHostChanged(object):
> +    interface.implements(IHTTPVirtualHostChanged)
> +    component.adapts(IHTTPApplicationRequest)
> +    
> +    request = None
> +    
> +    def __init__(self, request):
> +        self.request = request
> +

An event is not an adapter. So it really does not need component.adapts. Also, 
we usually append "Event" to the end of the event name to keep track of what 
this object is used for.

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 Zope3-Checkins mailing list