1
# Copyright 2009 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""Adapters for different objects to branch merge queue collections."""
8
'branch_collection_for_person',
12
from zope.component import getUtility
14
from lp.code.interfaces.branchmergequeuecollection import (
15
IAllBranchMergeQueues,
19
def merge_queue_collection_for_person(person):
20
"""Adapt a person to a branch collection."""
21
return getUtility(IAllBranchMergeQueues).ownedBy(person)