diff pages/social_contract/page_meta.py @ 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 5fd933e238bb
children
line wrap: on
line diff
--- 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: