launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #05199
Re: why is LayerProcessController /not/ a mixin?
On Sun, 17 Oct 2010 12:58:26 +1300, Robert Collins <robertc@xxxxxxxxxxxxxxxxx> wrote:
> It has the comment:
> class LayerProcessController:
> """Controller for starting and stopping subprocesses.
>
> Layers which need to start and stop a child process appserver or
> smtp
> server should call the methods in this class, but should NOT
> inherit from
> this class.
> """
>
> But its not clear why not? I ask because its directly calling into the
> db test fixture logic - duplicating DatabaseLayer.
I don't know, but I'd guess that it's paranoia inspired by the odd way
layers handle inheritance.
Cheers,
mwh
Follow ups
References