mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Use the backup component in all apps
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
f630fb6059
commit
fb1898befc
105 files changed
+748
-644
No files matched your search
@@ -9,9 +9,10 @@ from plinth import actions
|
||||
from plinth import app as app_module
|
||||
from plinth import frontpage, menu
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
|
||||
from .manifest import backup, clients # noqa, pylint: disable=unused-import
|
||||
from . import manifest
|
||||
|
||||
version = 1
|
||||
|
||||
@@ -53,7 +54,8 @@ class RoundcubeApp(app_module.App):
|
||||
name=_('Roundcube'), icon_filename='roundcube',
|
||||
short_description=_('Email Client'),
|
||||
description=_description,
|
||||
manual_page='Roundcube', clients=clients)
|
||||
manual_page='Roundcube',
|
||||
clients=manifest.clients)
|
||||
self.add(info)
|
||||
|
||||
menu_item = menu.Menu('menu-roundcube', info.name,
|
||||
@@ -76,6 +78,10 @@ class RoundcubeApp(app_module.App):
|
||||
urls=['https://{host}/roundcube'])
|
||||
self.add(webserver)
|
||||
|
||||
backup_restore = BackupRestore('backup-restore-roundcube',
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
|
||||
def setup(helper, old_version=None):
|
||||
"""Install and configure the module."""
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth.clients import validate
|
||||
from plinth.modules.backups.api import validate as validate_backup
|
||||
|
||||
clients = validate([{
|
||||
'name': _('Roundcube'),
|
||||
@@ -13,4 +12,4 @@ clients = validate([{
|
||||
}]
|
||||
}])
|
||||
|
||||
backup = validate_backup({})
|
||||
backup = {}
|
||||
Reference in new issue
Block a user