Some fixes for shaarli:

- Pass on_install to required packages decorator.
- Fix indentation.
This commit is contained in:
James Valleroy 2015-12-19 11:00:06 -05:00
parent 32a5b3cfbc
commit 8c3337ad60

View File

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