mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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
|
from plinth.modules import shaarli
|
||||||
|
|
||||||
def on_install():
|
def on_install():
|
||||||
"""Notify that the service is now enabled."""
|
"""Notify that the service is now enabled."""
|
||||||
shaarli.service.notify_enabled(None, True)
|
shaarli.service.notify_enabled(None, True)
|
||||||
|
|
||||||
@package.required(['shaarli'])
|
@package.required(['shaarli'], on_install=on_install)
|
||||||
def index(request):
|
def index(request):
|
||||||
"""Serve configuration page."""
|
"""Serve configuration page."""
|
||||||
status = get_status()
|
status = get_status()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user