def related_package_branch_info(self): branch_to_check = self.getBranch() if IBranch.providedBy(branch_to_check): branch_target = IBranchTarget(branch_to_check.target) return branch_target.getRelatedPackageBranchInfo(branch_to_check, limit_results=5)