コード例 #1
0
ファイル: web_ui.py プロジェクト: djangsters/agilo
 def do_post(self, req):
     req.perm.assert_permission(Action.CONTINGENT_ADD_TIME)
     sprint = self._get_sprint(req)
     
     added_times = self._extract_added_times(req)
     cc = ContingentController(self.env)
     for name, amount in added_times.items():
         cmd = ContingentController.AddTimeToContingentCommand(self.env, sprint=sprint.name, name=name, delta=amount)
         cc.process_command(cmd)
     req.redirect(self.get_redirect_url(req, sprint))
コード例 #2
0
    def do_post(self, req):
        req.perm.assert_permission(Action.CONTINGENT_ADD_TIME)
        sprint = self._get_sprint(req)

        added_times = self._extract_added_times(req)
        cc = ContingentController(self.env)
        for name, amount in added_times.items():
            cmd = ContingentController.AddTimeToContingentCommand(
                self.env, sprint=sprint.name, name=name, delta=amount)
            cc.process_command(cmd)
        req.redirect(self.get_redirect_url(req, sprint))
コード例 #3
0
ファイル: web_ui.py プロジェクト: djangsters/agilo
 def do_post(self, req):
     req.perm.assert_permission(Action.CONTINGENT_ADMIN)
     
     contingents_to_remove = req.args.getlist('sel')
     sprint = self._get_sprint(req)
     
     cc = ContingentController(self.env)
     for name in contingents_to_remove:
         cmd = ContingentController.DeleteContingentCommand(self.env, sprint=sprint.name, name=name)
         cc.process_command(cmd)
     req.redirect(self.get_redirect_url(req, sprint))
コード例 #4
0
    def do_post(self, req):
        req.perm.assert_permission(Action.CONTINGENT_ADMIN)

        contingents_to_remove = req.args.getlist('sel')
        sprint = self._get_sprint(req)

        cc = ContingentController(self.env)
        for name in contingents_to_remove:
            cmd = ContingentController.DeleteContingentCommand(
                self.env, sprint=sprint.name, name=name)
            cc.process_command(cmd)
        req.redirect(self.get_redirect_url(req, sprint))