launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #03700
Re: Adapters & API
On Thu, 01 Jul 2010 15:40:18 +0100, Michael Hudson <michael.hudson@xxxxxxxxxxxxx> wrote:
> Here's a thought experiment which possibly gets to the point Rob was making:
>
> We want to make Launchpad more of a 'choose your set of apps' thing, so
> that you can run, say, just codehosting (and registry, of course) or
> just bugtracking. It would be nice if being able to run different
> 'mixes' *in the same process* wasn't completely, theoretically,
> impossible -- so for example, having something in the bugs code that
> actually added things to the lp.registry.interfaces.product.IProduct
> interface object would fall into this category, as opposed to having the
> process of building the api root consider which things to add to *this*
> api root's product interface depending on config[1] values.
>
> For a start, testing is a lot easier in the second approach.
That is a good point.
I'm not sure it's entirely feasible with lazr.restful right now, but
having something that mediates what it does with the decorators that it
finds would be possible.
Thanks,
James
Follow ups
References