Comment 7 for bug 352094

Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 352094] Re: Expose ISourcePackage.branches

On Sat, 24 Oct 2009 07:22:56 Muharem Hrnjadovic wrote:
> Hmm .. interesting. IMHO the `ISeriesSourcePackageBranch` class has
> nothing to it that would preclude it from external exposure. Why is it
> banned from all APIs?
>
> The ISourcePackage.linked_branches() method returns a collection of
>
> (SeriesSourcePackageBranch.pocket, Branch) tuples
>
> which makes it difficult to declare its return type using something like
> @operation_returns_collection_of(). Or am I missing something?
>

I think all you have to do is to define that ISourcePackage inherits from
IHasBranches. That and the implementation class mixing in HasBranchesMixin.