def handle_edit_task_request(self, task):
        data = self.view.get_task_form_data()

        if not data.get("subject", None):
            self.view.notifier.error_msg("Subject is required")
        else:
            task_patch_f = self.executor.update_task(task, data)
            task_patch_f.add_done_callback(self.handle_edit_task_response)
Example #2
0
    def handle_edit_task_request(self, task):
        data = self.view.get_task_form_data()

        if not data.get("subject", None):
            self.view.notifier.error_msg("Subject is required")
        else:
            task_patch_f = self.executor.update_task(task, data)
            task_patch_f.add_done_callback(self.handle_edit_task_response)
    def handle_edit_user_story_request(self, user_story):
        data = self.view.get_user_story_form_data()

        if not data.get("subject", None):
            self.view.notifier.error_msg("Subject is required")
        else:
            us_patch_f = self.executor.update_user_story(user_story, data)
            us_patch_f.add_done_callback(self.handle_edit_user_story_response)
Example #4
0
    def handle_edit_user_story_request(self, user_story):
        data = self.view.get_user_story_form_data()

        if not data.get("subject", None):
            self.view.notifier.error_msg("Subject is required")
        else:
            us_patch_f = self.executor.update_user_story(user_story, data)
            us_patch_f.add_done_callback(self.handle_edit_user_story_response)