adjutant/stacktask/api
Amelia Cordwell 607cc93d67 Added auto approval as part of actions
In actions pre-approve stage the function self.set_auto_approve()
can be called, to identify the action as one that is allowed to
be pre-approved. (True, False and None can be specified). If the
function has not been called when auto_approve is accessed it will
default to None. This is saved as a new attribute in the actions
model.

At the task layer before process_actions finishes, it checks to
see the status of it's actions auto_approve. If none of these are
False and at least one of them is True it will auto approve
if all of it's actions have auto_approve set to true, if so
instead of returning it it will run (and return the values of)
the approve function.

ResetPassword is the only pre-approved action that has not been
switched to this way, due to possible security implications, as
it would return 'actions invalid' if the user did not exist.

Change-Id: I678849d212b7e91de541120e0d70ddf08cf9b488
2017-04-20 09:00:54 +12:00
..
migrations updating project id to match keystone 2016-10-04 09:57:52 +12:00
v1 Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
__init__.py Refactor of action structure 2017-04-19 18:42:13 +12:00
docs.py Core library requirements update 2016-08-09 12:02:42 +01:00
models.py updating project id to match keystone 2016-10-04 09:57:52 +12:00
urls.py Core library requirements update 2016-08-09 12:02:42 +01:00
utils.py @admin decorator switched to use require_roles 2016-12-01 00:16:10 +13:00