mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Some fixes for shaarli:
- Pass on_install to required packages decorator. - Fix indentation.
This commit is contained in:
parent
32a5b3cfbc
commit
8c3337ad60
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user