mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
5 files changed
+92
-55
No files matched your search
+4
-4
@@ -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(_):
|
||||
|
||||
Reference in new issue
Block a user