diff libervia/pages/files/page_meta.py @ 1509:106bae41f5c8

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:11 +0200
parents e065c8886b81
children
line wrap: on
line diff
--- a/libervia/pages/files/page_meta.py	Fri Apr 07 15:20:40 2023 +0200
+++ b/libervia/pages/files/page_meta.py	Sat Apr 08 13:44:11 2023 +0200
@@ -14,11 +14,11 @@
 
 
 async def prepare_render(self, request):
-    profile = self.getProfile(request)
+    profile = self.get_profile(request)
     template_data = request.template_data
     namespace = self.host.ns_map["fis"]
-    entities_services, entities_own, entities_roster = await self.host.bridgeCall(
-        "discoFindByFeatures", [namespace], [], False, True, True, True, False, profile
+    entities_services, entities_own, entities_roster = await self.host.bridge_call(
+        "disco_find_by_features", [namespace], [], False, True, True, True, False, profile
     )
     tpl_service_entities = template_data["disco_service_entities"] = {}
     tpl_own_entities = template_data["disco_own_entities"] = {}
@@ -37,16 +37,16 @@
             tpl_entities[entity_jid] = identities = {}
             for cat, type_, name in entity_ids:
                 identities.setdefault(cat, {}).setdefault(type_, []).append(name)
-            entities_url[entity_jid] = self.getPageByName("files_list").getURL(
+            entities_url[entity_jid] = self.get_page_by_name("files_list").get_url(
                 entity_jid.full()
             )
 
 
 def on_data_post(self, request):
-    jid_str = self.getPostedData(request, "jid")
+    jid_str = self.get_posted_data(request, "jid")
     try:
         jid_ = jid.JID(jid_str)
     except RuntimeError:
-        self.pageError(request, C.HTTP_BAD_REQUEST)
-    url = self.getPageByName("files_list").getURL(jid_.full())
-    self.HTTPRedirect(request, url)
+        self.page_error(request, C.HTTP_BAD_REQUEST)
+    url = self.get_page_by_name("files_list").get_url(jid_.full())
+    self.http_redirect(request, url)