mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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():
|
def init():
|
||||||
"""Initailize the apps module"""
|
"""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):
|
def index(request):
|
||||||
|
|||||||
@ -31,7 +31,8 @@ from plinth.errors import ActionError
|
|||||||
def init():
|
def init():
|
||||||
"""Initialize the module"""
|
"""Initialize the module"""
|
||||||
menu = cfg.main_menu.get('system:index')
|
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
|
@login_required
|
||||||
|
|||||||
@ -23,7 +23,8 @@ from plinth import cfg
|
|||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Initialize the system module"""
|
"""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):
|
def index(request):
|
||||||
|
|||||||
@ -21,7 +21,6 @@ Framework for working with servers and their services.
|
|||||||
|
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
import django.dispatch
|
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
from plinth.signals import service_enabled
|
from plinth.signals import service_enabled
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user