Fix missing exception decorators in REST API

Change-Id: Ifbc0582c6339bc2c94b3e8f9cd13af6d17f55a40
This commit is contained in:
Xavier Hardy 2016-11-09 17:31:59 +01:00
parent eb286afe1e
commit 28d1675828
8 changed files with 11 additions and 0 deletions

View File

@ -136,6 +136,7 @@ class ActionsController(rest.RestController, hooks.HookController):
db_api.delete_action_definition(identifier)
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.Actions, types.uuid, int, types.uniquelist,
types.list, types.uniquelist, wtypes.text,
wtypes.text, resources.SCOPE_TYPES, wtypes.text,

View File

@ -176,6 +176,7 @@ class ActionExecutionsController(rest.RestController):
return resources.ActionExecution.from_dict(values)
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.ActionExecutions, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
wtypes.text, wtypes.text, wtypes.text,
@ -288,6 +289,7 @@ class ActionExecutionsController(rest.RestController):
class TasksActionExecutionController(rest.RestController):
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.ActionExecutions, types.uuid, types.uuid,
int, types.uniquelist, types.list, types.uniquelist,
wtypes.text, types.uniquelist, wtypes.text,

View File

@ -83,6 +83,7 @@ class CronTriggersController(rest.RestController):
db_api.delete_cron_trigger(name)
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.CronTriggers, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
wtypes.text, wtypes.text, types.uuid, types.jsontype,

View File

@ -33,6 +33,7 @@ LOG = logging.getLogger(__name__)
class EnvironmentController(rest.RestController):
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.Environments, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
wtypes.text, wtypes.text, types.jsontype,

View File

@ -116,6 +116,7 @@ class EventTriggersController(rest.RestController):
triggers.delete_event_trigger(event_trigger.to_dict())
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.EventTriggers, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
types.jsontype)

View File

@ -222,6 +222,7 @@ class ExecutionsController(rest.RestController):
return db_api.delete_workflow_execution(id)
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.Executions, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
wtypes.text, types.uuid, wtypes.text, types.jsontype,

View File

@ -48,6 +48,7 @@ def _get_task_resource_with_result(task_ex):
class TaskExecutionsController(rest.RestController):
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.Executions, types.uuid, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
wtypes.text, types.uuid, wtypes.text, types.jsontype,
@ -143,6 +144,7 @@ class TasksController(rest.RestController):
return _get_task_resource_with_result(task_ex)
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.Tasks, types.uuid, int, types.uniquelist,
types.list, types.uniquelist, wtypes.text,
wtypes.text, types.uuid, types.uuid, STATE_TYPES,
@ -286,6 +288,7 @@ class TasksController(rest.RestController):
class ExecutionTasksController(rest.RestController):
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.Tasks, types.uuid, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
wtypes.text, wtypes.text, types.uuid, STATE_TYPES,

View File

@ -93,6 +93,7 @@ class WorkbooksController(rest.RestController, hooks.HookController):
db_api.delete_workbook(name)
@rest_utils.wrap_wsme_controller_exception
@wsme_pecan.wsexpose(resources.Workbooks, types.uuid, int,
types.uniquelist, types.list, types.uniquelist,
wtypes.text, wtypes.text, wtypes.text,