diff libervia/pages/blog/edit/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 081b4f8a63d8
children
line wrap: on
line diff
--- a/libervia/pages/blog/edit/page_meta.py	Fri Apr 07 15:20:40 2023 +0200
+++ b/libervia/pages/blog/edit/page_meta.py	Sat Apr 08 13:44:11 2023 +0200
@@ -12,11 +12,11 @@
 
 
 async def on_data_post(self, request):
-    profile = self.getProfile(request)
+    profile = self.get_profile(request)
     if profile is None:
-        self.pageError(request, C.HTTP_FORBIDDEN)
-    request_data = self.getRData(request)
-    title, tags, body = self.getPostedData(request, ('title', 'tags', 'body'))
+        self.page_error(request, C.HTTP_FORBIDDEN)
+    request_data = self.get_r_data(request)
+    title, tags, body = self.get_posted_data(request, ('title', 'tags', 'body'))
     mb_data = {"content_rich": body, "allow_comments": True}
     title = title.strip()
     if title:
@@ -25,12 +25,12 @@
     if tags:
         mb_data["tags"] = tags
 
-    await self.host.bridgeCall(
-        'mbSend',
+    await self.host.bridge_call(
+        'mb_send',
         "",
         "",
         data_format.serialise(mb_data),
         profile
     )
 
-    request_data["post_redirect_page"] = self.getPageByName("blog")
+    request_data["post_redirect_page"] = self.get_page_by_name("blog")