radicale: Minor fixes for access rights config

- Fix code style.

- Keep description and util functions at module level.

- Add license notice to forms file.

- Internationalize and make choice descriptions more informative.
This commit is contained in:
James Valleroy committed 2016-07-24 18:54:32 -04:00
1 parent c050967c92
commit 8a6b09381f
5 files changed
+92 -55

No files matched your search

+4 -4
View File
@@ -22,7 +22,6 @@ Configuration helper for Radicale.
import argparse
import augeas
import subprocess
from plinth import action_utils
@@ -38,8 +37,10 @@ def parse_arguments():
subparsers.add_parser('setup', help='Setup Radicale configuration')
subparsers.add_parser('enable', help='Enable Radicale service')
subparsers.add_parser('disable', help='Disable Radicale service')
configure = subparsers.add_parser('configure', help='configure various options')
configure.add_argument('--rights_type', help='Set the rights type for radicale')
configure = subparsers.add_parser('configure',
help='Configure various options')
configure.add_argument('--rights_type',
help='Set the rights type for radicale')
return parser.parse_args()
@@ -73,7 +74,6 @@ def subcommand_configure(arguments):
aug.save()
action_utils.service_restart('radicale')
action_utils.webserver_enable('radicale-plinth')
def subcommand_enable(_):