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():
"""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):

View File

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

View File

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

View File

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