power: Minor updates

- Change term 'reboot' to 'restart' as it is less techinical and more
  consistent with popular interaces on desktop/mobiles.

- Updated description for power module.

- Simplify the module title to just 'Power'.

- Update the use of elipses and angular quotes as angular quotes and
  elipses are both used to indicate that further user interface will be
  available after pressing the button.

- Remove suprious '\' in power_reboot.html.

- Notify to the user that web interface will not be available after
  reboot/shutdown.

- Redirect the user to application page after restart/shutdown.  If the
  page serve succeeds, they will have simply refresh/access it after
  restart/shutdown after waiting or powering on.
This commit is contained in:
Sunil Mohan Adapa committed 2015-11-27 11:40:09 +05:30
1 parent a002ca300c
commit a0da928dae
6 files changed
+29 -28

No files matched your search

+3 -3
View File
@@ -29,14 +29,14 @@ def parse_arguments():
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(dest='subcommand', help='Sub command')
subparsers.add_parser('reboot', help='Reboot the system')
subparsers.add_parser('restart', help='Restart the system')
subparsers.add_parser('shutdown', help='Shut down the system')
return parser.parse_args()
def subcommand_reboot(_):
"""Reboot the system."""
def subcommand_restart(_):
"""Restart the system."""
subprocess.call('reboot')