adjutant/stacktask/api/v1
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
..
templates user state + signup templates 2016-12-05 16:09:18 +13:00
tests better manageable roles 2017-04-19 19:10:06 +12:00
__init__.py Refactor of action structure 2017-04-19 18:42:13 +12:00
app.py Refactor of action structure 2017-04-19 18:42:13 +12:00
models.py Adding pep8 tests 2016-12-06 18:09:36 +13:00
openstack.py Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
tasks.py Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
urls.py Setup StackTask for plugins 2016-08-09 15:40:19 +12:00
utils.py Adding pep8 tests 2016-12-06 18:09:36 +13:00
views.py Adding pep8 tests 2016-12-06 18:09:36 +13:00