diff libervia/web/server/pages.py @ 1592:291a7026cb2b

server: handle new registration link feature, following backend implementation
author Goffi <goffi@goffi.org>
date Sun, 10 Dec 2023 18:33:00 +0100
parents 08342aca8c1e
children 7941444c1671
line wrap: on
line diff
--- a/libervia/web/server/pages.py	Sun Dec 10 11:01:57 2023 +0100
+++ b/libervia/web/server/pages.py	Sun Dec 10 18:33:00 2023 +0100
@@ -867,13 +867,19 @@
 
         return value
 
-    def get_path_args(self, request, names, min_args=0, **kwargs):
-        """get several path arguments at once
+    def get_path_args(
+        self,
+        request: server.Request,
+        names: list[str],
+        min_args: int = 0,
+        **kwargs
+    ) -> None:
+        """Get several path arguments at once.
 
         Arguments will be put in request data.
         Missing arguments will have None value
-        @param names(list[unicode]): list of arguments to get
-        @param min_args(int): if less than min_args are found, PageError is used with
+        @param names: list of arguments to get
+        @param min_args: if less than min_args are found, PageError is used with
             C.HTTP_BAD_REQUEST
             Use 0 to ignore
         @param **kwargs: special value or optional callback to use for arguments