~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/branch.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-22 00:54:31 UTC
  • mfrom: (14186.7.11 observer-merging)
  • Revision ID: launchpad@pqm.canonical.com-20111122005431-sv2g5bsg6r75zl5m
[r=stevenk][no-qa] Make the person merger and branch deleter cope
        with the AccessPolicy tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
    )
142
142
from lp.code.model.seriessourcepackagebranch import SeriesSourcePackageBranch
143
143
from lp.codehosting.safe_open import safe_open
 
144
from lp.registry.interfaces.accesspolicy import IAccessPolicyArtifactSource
144
145
from lp.registry.interfaces.person import (
145
146
    validate_person,
146
147
    validate_public_person,
1125
1126
 
1126
1127
        self._deleteBranchSubscriptions()
1127
1128
        self._deleteJobs()
 
1129
        getUtility(IAccessPolicyArtifactSource).delete(self)
1128
1130
 
1129
1131
        # Now destroy the branch.
1130
1132
        branch_id = self.id