def _approve(self): c.highlight = set() talks = self.form_result['talk'] statuses = self.form_result['status'] for talk, status in zip(talks, statuses): if status is not None: c.highlight.add(talk.id) talk.status = status meta.Session.commit() c.proposals = Proposal.find_all() c.statuses = ProposalStatus.find_all() return render("proposal/approve.mako")
def approve(self): c.highlight = set() c.proposals = Proposal.find_all() c.statuses = ProposalStatus.find_all() return render("proposal/approve.mako")