Beispiel #1
0
    def _approve(self):
        c.highlight = set()
        requests = self.form_result['funding']
        statuses = self.form_result['status']
        for request, status in zip(requests, statuses):
            if status is not None:
                c.highlight.add(request.id)
                request.status = status
        meta.Session.commit()

        c.requests = Funding.find_all()
        c.statuses = FundingStatus.find_all()
        return render("funding/approve.mako")
Beispiel #2
0
    def _approve(self):
        c.highlight = set()
        requests = self.form_result['funding']
        statuses = self.form_result['status']
        for request, status in zip(requests, statuses):
            if status is not None:
                c.highlight.add(request.id)
                request.status = status
        meta.Session.commit()

        c.requests = Funding.find_all()
        c.statuses = FundingStatus.find_all()
        return render("funding/approve.mako")
Beispiel #3
0
 def approve(self):
     c.highlight = set()
     c.requests = Funding.find_all()
     c.statuses = FundingStatus.find_all()
     return render("funding/approve.mako")
Beispiel #4
0
 def approve(self):
     c.highlight = set()
     c.requests = Funding.find_all()
     c.statuses = FundingStatus.find_all()
     return render("funding/approve.mako")