l.r.i.p.IPersonMergeJobSource(IJobSource) : interface documentation

Part of lp.registry.interfaces.persontransferjob View In Hierarchy

An interface for acquiring IPersonMergeJobs.
Method create Create a new IPersonMergeJob.
Method find Finds pending merge jobs.

Inherited from IJobSource:

Int memory_limit Undocumented
Method iterReady Iterate through all jobs.
Method contextManager Get a context for running this kind of job in.
def create(from_person, to_person, reviewer=None, delete=False):
Create a new IPersonMergeJob.

None is returned if either the from_person or to_person are already in a pending merge. The review keyword argument is required if the from_person and to_person are teams.

Parametersfrom_personAn IPerson or ITeam that is a duplicate.
to_personAn IPerson or ITeam that is a master.
reviewerAn IPerson who approved ITeam merger.
deleteThe merge is really a deletion.
def find(from_person=None, to_person=None, any_person=False):
Finds pending merge jobs.

If both from_person and to_person is supplied, only jobs where both match are returned by default. When any_person is True and from_person and to_person are supplied, jobs with either person specified are returned.

Parametersfrom_personMatch jobs on from_person, or None to ignore from_person.
to_personMatch jobs on to_person, or None to ignore from_person.
any_personMatch jobs on the to_person or the from_person when both to_person and from_person are not None.
ReturnsA ResultSet yielding IPersonMergeJob.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.