diff pages/social_contract/page_meta.py @ 22:5fd933e238bb

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Mon, 22 May 2023 09:11:54 +0200
parents 9ce41ef66dfa
children e7c7327f9f25
line wrap: on
line diff
--- a/pages/social_contract/page_meta.py	Tue Nov 30 17:39:46 2021 +0100
+++ b/pages/social_contract/page_meta.py	Mon May 22 09:11:54 2023 +0200
@@ -12,7 +12,7 @@
 
 def prepare_render(self, request):
     global social_contracts
-    session_data = self.host.getSessionData(request, session_iface.ISATSession)
+    session_data = self.host.get_session_data(request, session_iface.ISATSession)
     if session_data.locale is None:
         locale = "en"
     else:
@@ -24,7 +24,7 @@
         social_contract = social_contracts[locale]
     except KeyError:
         # we don't have the document in cache
-        build_path = self.host.getBuildPath(self.vhost_root.site_name)
+        build_path = self.host.get_build_path(self.vhost_root.site_name)
 
         if locale == "fr":
             # main social contract is in French, so we don't have suffix in this case