mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
cosmetic: Yapf and isort fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
2ebb565c92
commit
a1fd8f45be
@ -17,15 +17,10 @@
|
||||
"""
|
||||
Views for the Cockpit module
|
||||
"""
|
||||
from plinth.views import AppView
|
||||
from plinth.modules.cockpit import (
|
||||
name,
|
||||
description,
|
||||
clients,
|
||||
manual_page,
|
||||
icon_filename,
|
||||
)
|
||||
from plinth.modules.cockpit import (clients, description, icon_filename,
|
||||
manual_page, name)
|
||||
from plinth.modules.cockpit.utils import get_origin_domains, load_augeas
|
||||
from plinth.views import AppView
|
||||
|
||||
|
||||
class CockpitAppView(AppView):
|
||||
|
||||
@ -23,8 +23,8 @@ from django.contrib import messages
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
from plinth.views import AppView
|
||||
from plinth.modules import minidlna
|
||||
from plinth.views import AppView
|
||||
|
||||
from .forms import MiniDLNAServerForm
|
||||
|
||||
@ -58,8 +58,7 @@ class MiniDLNAAppView(AppView):
|
||||
else:
|
||||
actions.superuser_run(
|
||||
'minidlna',
|
||||
['set-media-dir', '--dir', new_config['media_dir']]
|
||||
)
|
||||
['set-media-dir', '--dir', new_config['media_dir']])
|
||||
messages.success(self.request, _('Updated media directory'))
|
||||
|
||||
return super().form_valid(form)
|
||||
|
||||
@ -18,14 +18,8 @@ from django.contrib import messages
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import actions
|
||||
from plinth.modules.mumble import (
|
||||
name,
|
||||
icon_filename,
|
||||
description,
|
||||
clients,
|
||||
manual_page,
|
||||
port_forwarding_info,
|
||||
)
|
||||
from plinth.modules.mumble import (clients, description, icon_filename,
|
||||
manual_page, name, port_forwarding_info)
|
||||
from plinth.modules.mumble.forms import MumbleForm
|
||||
from plinth.views import AppView
|
||||
|
||||
|
||||
@ -25,6 +25,7 @@ import socket
|
||||
|
||||
from django.contrib import messages
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
from plinth import actions, views
|
||||
from plinth.modules import transmission
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user