Mercurial > libervia-website
changeset 28:e7c7327f9f25
refactoring: fix imports and names in doc following modules hierarchy refactoring
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Jun 2023 17:48:38 +0200 |
parents | b2d26ffce40d |
children | 07b7aa5b3c88 |
files | pages/association/membership/page_meta.py pages/association/page_meta.py pages/documentation/page_meta.py pages/news/page_meta.py pages/presentation/page_meta.py pages/press/page_meta.py pages/social_contract/page_meta.py tasks/task_generate_doc.py tasks/task_social_contract.py |
diffstat | 9 files changed, 24 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/pages/association/membership/page_meta.py Mon May 22 15:52:26 2023 +0200 +++ b/pages/association/membership/page_meta.py Fri Jun 02 17:48:38 2023 +0200 @@ -3,12 +3,12 @@ from collections import namedtuple from twisted.internet import defer -from libervia.server.constants import Const as C -from sat.core.i18n import D_ -from sat.tools import config -from sat.tools.common import email -from sat.core import exceptions -from sat.core.log import getLogger +from libervia.web.server.constants import Const as C +from libervia.backend.core.i18n import D_ +from libervia.backend.tools import config +from libervia.backend.tools.common import email +from libervia.backend.core import exceptions +from libervia.backend.core.log import getLogger log = getLogger(__name__)
--- a/pages/association/page_meta.py Mon May 22 15:52:26 2023 +0200 +++ b/pages/association/page_meta.py Fri Jun 02 17:48:38 2023 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/env python2.7 # -*- coding: utf-8 -*- -from sat.core.log import getLogger +from libervia.backend.core.log import getLogger log = getLogger(__name__)
--- a/pages/documentation/page_meta.py Mon May 22 15:52:26 2023 +0200 +++ b/pages/documentation/page_meta.py Fri Jun 02 17:48:38 2023 +0200 @@ -1,8 +1,8 @@ #!/usr/bin/env python2.7 # -*- coding: utf-8 -*- -from sat.core.log import getLogger -from sat.core.i18n import _ +from libervia.backend.core.log import getLogger +from libervia.backend.core.i18n import _ log = getLogger(__name__)
--- a/pages/news/page_meta.py Mon May 22 15:52:26 2023 +0200 +++ b/pages/news/page_meta.py Fri Jun 02 17:48:38 2023 +0200 @@ -1,7 +1,7 @@ -from libervia.server.constants import Const as C +from libervia.web.server.constants import Const as C from twisted.words.protocols.jabber import jid -from sat.core.i18n import _ -from sat.core.log import getLogger +from libervia.backend.core.i18n import _ +from libervia.backend.core.log import getLogger log = getLogger(__name__)
--- a/pages/presentation/page_meta.py Mon May 22 15:52:26 2023 +0200 +++ b/pages/presentation/page_meta.py Fri Jun 02 17:48:38 2023 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from sat.core.log import getLogger +from libervia.backend.core.log import getLogger log = getLogger(__name__)
--- a/pages/press/page_meta.py Mon May 22 15:52:26 2023 +0200 +++ b/pages/press/page_meta.py Fri Jun 02 17:48:38 2023 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/env python2.7 # -*- coding: utf-8 -*- -from sat.core.log import getLogger +from libervia.backend.core.log import getLogger log = getLogger(__name__)
--- a/pages/social_contract/page_meta.py Mon May 22 15:52:26 2023 +0200 +++ b/pages/social_contract/page_meta.py Fri Jun 02 17:48:38 2023 +0200 @@ -2,8 +2,8 @@ # -*- coding: utf-8 -*- import os.path -from sat.tools.common.template import safe -from libervia.server import session_iface +from libervia.backend.tools.common.template import safe +from libervia.web.server import session_iface name = "social_contract" template = "social_contract/social_contract.html" @@ -12,7 +12,7 @@ def prepare_render(self, request): global social_contracts - session_data = self.host.get_session_data(request, session_iface.ISATSession) + session_data = self.host.get_session_data(request, session_iface.IWebSession) if session_data.locale is None: locale = "en" else:
--- a/tasks/task_generate_doc.py Mon May 22 15:52:26 2023 +0200 +++ b/tasks/task_generate_doc.py Fri Jun 02 17:48:38 2023 +0200 @@ -2,10 +2,10 @@ import sys import os.path -from sat.core.i18n import _ -from sat.core.log import getLogger -from sat.tools.common import regex -from libervia.server.tasks import task +from libervia.backend.core.i18n import _ +from libervia.backend.core.log import getLogger +from libervia.backend.tools.common import regex +from libervia.web.server.tasks import task log = getLogger(__name__)
--- a/tasks/task_social_contract.py Mon May 22 15:52:26 2023 +0200 +++ b/tasks/task_social_contract.py Fri Jun 02 17:48:38 2023 +0200 @@ -3,9 +3,9 @@ import glob import os.path import markdown -from sat.core.i18n import _ -from sat.core.log import getLogger -from libervia.server.tasks import task +from libervia.backend.core.i18n import _ +from libervia.backend.core.log import getLogger +from libervia.web.server.tasks import task log = getLogger(__name__)