[Twisted-Python] Re: Questions about the Perspective Broker login mechanism

David Bolen db3l.net at gmail.com
Sun Aug 19 17:08:22 EDT 2007

Jean-Paul Calderone <exarkun at divmod.com> writes:

> On Sun, 19 Aug 2007 16:37:01 -0400, David Bolen <db3l.net at gmail.com> wrote:
>> [snip]
>>So, feel free to have at it.  There are probably a few ways you could
>>take control, but I were doing it, I'd probably take my Portal
>>subclass and make it directly implement IPBRoot (thus avoiding the
>>registered adapter _PortalRoot).
> I generally agree with the comments you've made here, except for this
> paragraph.  Don't subclass Portal (ever, preferably ;).  (...)

Hmm, not that I've actually ever needed to yet myself, but is there
something specifically about Portal that prefers composition to
subclassing, or is it just a general design preference?

-- David

More information about the Twisted-Python mailing list