def getProposals(self): """Get the proposals for the view.""" collection = IBranchCollection(self.context) collection = collection.visibleByUser(self.user) proposals = collection.getMergeProposals( [BranchMergeProposalStatus.CODE_APPROVED, BranchMergeProposalStatus.NEEDS_REVIEW], eager_load=True ) return proposals
def getProposals(self): """Get the proposals for the view.""" collection = IBranchCollection(self.context) collection = collection.visibleByUser(self.user) proposals = collection.getMergeProposals([ BranchMergeProposalStatus.CODE_APPROVED, BranchMergeProposalStatus.NEEDS_REVIEW ], eager_load=True) return proposals
def show_bzr_link(self): collection = IBranchCollection(self.context) return not collection.visibleByUser(self.user).is_empty()