mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +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
|
Views for the Cockpit module
|
||||||
"""
|
"""
|
||||||
from plinth.views import AppView
|
from plinth.modules.cockpit import (clients, description, icon_filename,
|
||||||
from plinth.modules.cockpit import (
|
manual_page, name)
|
||||||
name,
|
|
||||||
description,
|
|
||||||
clients,
|
|
||||||
manual_page,
|
|
||||||
icon_filename,
|
|
||||||
)
|
|
||||||
from plinth.modules.cockpit.utils import get_origin_domains, load_augeas
|
from plinth.modules.cockpit.utils import get_origin_domains, load_augeas
|
||||||
|
from plinth.views import AppView
|
||||||
|
|
||||||
|
|
||||||
class CockpitAppView(AppView):
|
class CockpitAppView(AppView):
|
||||||
|
|||||||
@ -23,8 +23,8 @@ from django.contrib import messages
|
|||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from plinth import actions
|
from plinth import actions
|
||||||
from plinth.views import AppView
|
|
||||||
from plinth.modules import minidlna
|
from plinth.modules import minidlna
|
||||||
|
from plinth.views import AppView
|
||||||
|
|
||||||
from .forms import MiniDLNAServerForm
|
from .forms import MiniDLNAServerForm
|
||||||
|
|
||||||
@ -58,8 +58,7 @@ class MiniDLNAAppView(AppView):
|
|||||||
else:
|
else:
|
||||||
actions.superuser_run(
|
actions.superuser_run(
|
||||||
'minidlna',
|
'minidlna',
|
||||||
['set-media-dir', '--dir', new_config['media_dir']]
|
['set-media-dir', '--dir', new_config['media_dir']])
|
||||||
)
|
|
||||||
messages.success(self.request, _('Updated media directory'))
|
messages.success(self.request, _('Updated media directory'))
|
||||||
|
|
||||||
return super().form_valid(form)
|
return super().form_valid(form)
|
||||||
|
|||||||
@ -18,14 +18,8 @@ from django.contrib import messages
|
|||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from plinth import actions
|
from plinth import actions
|
||||||
from plinth.modules.mumble import (
|
from plinth.modules.mumble import (clients, description, icon_filename,
|
||||||
name,
|
manual_page, name, port_forwarding_info)
|
||||||
icon_filename,
|
|
||||||
description,
|
|
||||||
clients,
|
|
||||||
manual_page,
|
|
||||||
port_forwarding_info,
|
|
||||||
)
|
|
||||||
from plinth.modules.mumble.forms import MumbleForm
|
from plinth.modules.mumble.forms import MumbleForm
|
||||||
from plinth.views import AppView
|
from plinth.views import AppView
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@ import socket
|
|||||||
|
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
|
|
||||||
from plinth import actions, views
|
from plinth import actions, views
|
||||||
from plinth.modules import transmission
|
from plinth.modules import transmission
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user