~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/security.py

Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1645
1645
            return None
1646
1646
 
1647
1647
    def _getBuild(self):
1648
 
        """Get `IBuildBase` associated with this job, if any."""
 
1648
        """Get `IPackageBuild` associated with this job, if any."""
1649
1649
        if IBuildFarmBuildJob.providedBy(self.obj):
1650
1650
            return self.obj.build
1651
1651
        else:
1652
1652
            return None
1653
1653
 
1654
1654
    def _checkBuildPermission(self, user=None):
1655
 
        """Check access to `IBuildBase` for this job."""
 
1655
        """Check access to `IPackageBuild` for this job."""
1656
1656
        permission = ViewBinaryPackageBuild(self.obj.build)
1657
1657
        if user is None:
1658
1658
            return permission.checkUnauthenticated()