From f362ce937e0bc24cbd91eb09fd6b99d85f9b2ebb Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 19 Oct 2018 17:20:59 -0700 Subject: [PATCH] names: Enable backup/restore (no data) There might be data to backup in future if we allow customizing domain configuration. Currently, it is just an assurance to the user that there is no data to backup. Reviewed-by: James Valleroy --- plinth/modules/names/__init__.py | 2 ++ plinth/modules/names/manifest.py | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 plinth/modules/names/manifest.py diff --git a/plinth/modules/names/__init__.py b/plinth/modules/names/__init__.py index 139ea2e41..8fbd8a1e5 100644 --- a/plinth/modules/names/__init__.py +++ b/plinth/modules/names/__init__.py @@ -25,6 +25,8 @@ from django.utils.translation import ugettext_lazy as _ from plinth.menu import main_menu from plinth.signals import domain_added, domain_removed +from .manifest import backup + SERVICES = ( ('http', _('HTTP'), 80), ('https', _('HTTPS'), 443), diff --git a/plinth/modules/names/manifest.py b/plinth/modules/names/manifest.py new file mode 100644 index 000000000..8528437a3 --- /dev/null +++ b/plinth/modules/names/manifest.py @@ -0,0 +1,23 @@ +# +# This file is part of FreedomBox. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +""" +Application manifest for names. +""" + +from plinth.modules.backups.api import validate as validate_backup + +backup = validate_backup({})