From 8c3337ad6080fd060665bc2de79143c868a9b4b0 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 19 Dec 2015 11:00:06 -0500 Subject: [PATCH] Some fixes for shaarli: - Pass on_install to required packages decorator. - Fix indentation. --- plinth/modules/shaarli/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/shaarli/views.py b/plinth/modules/shaarli/views.py index 1965d5a44..6182db539 100644 --- a/plinth/modules/shaarli/views.py +++ b/plinth/modules/shaarli/views.py @@ -29,10 +29,10 @@ from plinth import package from plinth.modules import shaarli def on_install(): -"""Notify that the service is now enabled.""" -shaarli.service.notify_enabled(None, True) + """Notify that the service is now enabled.""" + shaarli.service.notify_enabled(None, True) -@package.required(['shaarli']) +@package.required(['shaarli'], on_install=on_install) def index(request): """Serve configuration page.""" status = get_status()