fixed some flake8 errors

This commit is contained in:
fonfon 2014-12-15 16:02:56 +01:00
parent ae83566653
commit 4010b81ecc
4 changed files with 7 additions and 5 deletions

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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