mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
fixed some flake8 errors
This commit is contained in:
parent
ae83566653
commit
4010b81ecc
@ -23,7 +23,8 @@ from plinth import cfg
|
||||
|
||||
def init():
|
||||
"""Initailize the apps module"""
|
||||
cfg.main_menu.add_urlname("Apps", "glyphicon-download-alt", "apps:index", 80)
|
||||
cfg.main_menu.add_urlname("Apps", "glyphicon-download-alt", "apps:index",
|
||||
80)
|
||||
|
||||
|
||||
def index(request):
|
||||
|
||||
@ -31,7 +31,8 @@ from plinth.errors import ActionError
|
||||
def init():
|
||||
"""Initialize the module"""
|
||||
menu = cfg.main_menu.get('system:index')
|
||||
menu.add_urlname("Diagnostics", "glyphicon-screenshot", "diagnostics:index", 30)
|
||||
menu.add_urlname("Diagnostics", "glyphicon-screenshot",
|
||||
"diagnostics:index", 30)
|
||||
|
||||
|
||||
@login_required
|
||||
|
||||
@ -23,7 +23,8 @@ from plinth import cfg
|
||||
|
||||
def init():
|
||||
"""Initialize the system module"""
|
||||
cfg.main_menu.add_urlname(_('System'), 'glyphicon-cog', 'system:index', 100)
|
||||
cfg.main_menu.add_urlname(_('System'), 'glyphicon-cog', 'system:index',
|
||||
100)
|
||||
|
||||
|
||||
def index(request):
|
||||
|
||||
@ -21,7 +21,6 @@ Framework for working with servers and their services.
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
import django.dispatch
|
||||
import collections
|
||||
|
||||
from plinth.signals import service_enabled
|
||||
@ -66,7 +65,7 @@ class Service(object):
|
||||
self._enabled = enabled
|
||||
|
||||
service_enabled.send_robust(sender=sender, service_id=self.service_id,
|
||||
enabled=enabled)
|
||||
enabled=enabled)
|
||||
|
||||
|
||||
def init():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user