Mercurial > libervia-web
diff libervia/pages/merge-requests/disco/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 | e3e303a30a74 |
children |
line wrap: on
line diff
--- a/libervia/pages/merge-requests/disco/page_meta.py Fri Apr 07 15:20:40 2023 +0200 +++ b/libervia/pages/merge-requests/disco/page_meta.py Sat Apr 08 13:44:11 2023 +0200 @@ -22,7 +22,7 @@ service = handler_data["service"] node = handler_data["node"] name = handler_data["name"] - url = self.getPageByName("merge-requests").getURL(service, node) + url = self.get_page_by_name("merge-requests").get_url(service, node) handlers.append({"name": name, "url": url}) except KeyError as e: log.warning("Missing field in mr_handlers_json: {msg}".format(msg=e)) @@ -31,11 +31,11 @@ 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) + self.page_error(request, C.HTTP_BAD_REQUEST) # for now we just use default node - url = self.getPageByName("merge-requests").getURL(jid_.full(), "@") - self.HTTPRedirect(request, url) + url = self.get_page_by_name("merge-requests").get_url(jid_.full(), "@") + self.http_redirect(request, url)