launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #03686
Re: Adapters & API
On Wed, 2010-06-30 at 09:38 -0400, Leonard Richardson wrote:
> > What we would like to do is avoid registry importing from so many of the
> > other apps, to avoid the circular dependencies.
> >
> > To do this we are currently looking at having ISomething interfaces in
> > the apps (bugs, code, soyuz etc.) that define an interface relevant to
> > them. This is standard practice for a lot of things, see IBugTarget,
> > IHasBranches etc.
>
> When the issue of circular dependencies first came up, we decided to
> stumble along until we could use a planned newer version of Zope which
> would allow us to use some kind of deferred reference. I didn't follow
> this development very closely, so I don't know if this feature actually
> made it into Zope, but if so it seems like a simpler solution to your
> problem than creating a lot of adapters.
I think that would be zope.deferredimport, which is already available in
Launchpad but doesn't seem to work for us. IIRC it was Gary who
explained why it won't work for us, but I can't find that out right now
and Gary's offline until Monday.
Even if it worked, though, I'm not sure we'd want to use that to make
the registry not depend on any other apps (which is our use case)
because it has the potential of complicating things significantly, given
the number of dependencies the registry has on other apps.
--
Guilherme Salgado <https://launchpad.net/~salgado>
Attachment:
signature.asc
Description: This is a digitally signed message part
References