Merge lp:~rvb/maas/fpi-button into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1685 |
Proposed branch: | lp:~rvb/maas/fpi-button |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
203 lines (+100/-9) 5 files modified
src/maasserver/node_action.py (+39/-0) src/maasserver/tests/test_forms.py (+3/-1) src/maasserver/tests/test_node_action.py (+50/-0) src/maasserver/tests/test_views_nodes.py (+4/-4) src/maasserver/views/nodes.py (+4/-4) |
To merge this branch: | bzr merge lp:~rvb/maas/fpi-button |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+190049@code.launchpad.net |
Commit message
Add buttons to enable/disable curtin.
Description of the change
Since I extended the meaning of is_permitted(), I changed the error messages a bit. A better fix would have been to extend the logic of the action classes to include a is_enabled() or something but this would require much more work; besides, I think the logic we have in place is complicated enough already.
Please carefully review the wordings on the buttons. I'm happy with any suggestion but keep in mind that the "display" and "display_bulk" fields have to be small to fit in our design!
To post a comment you must log in.