Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
1591:f1d09a4d38dc | 1592:291a7026cb2b |
---|---|
865 else: | 865 else: |
866 return handler(self, value, name, request) | 866 return handler(self, value, name, request) |
867 | 867 |
868 return value | 868 return value |
869 | 869 |
870 def get_path_args(self, request, names, min_args=0, **kwargs): | 870 def get_path_args( |
871 """get several path arguments at once | 871 self, |
872 request: server.Request, | |
873 names: list[str], | |
874 min_args: int = 0, | |
875 **kwargs | |
876 ) -> None: | |
877 """Get several path arguments at once. | |
872 | 878 |
873 Arguments will be put in request data. | 879 Arguments will be put in request data. |
874 Missing arguments will have None value | 880 Missing arguments will have None value |
875 @param names(list[unicode]): list of arguments to get | 881 @param names: list of arguments to get |
876 @param min_args(int): if less than min_args are found, PageError is used with | 882 @param min_args: if less than min_args are found, PageError is used with |
877 C.HTTP_BAD_REQUEST | 883 C.HTTP_BAD_REQUEST |
878 Use 0 to ignore | 884 Use 0 to ignore |
879 @param **kwargs: special value or optional callback to use for arguments | 885 @param **kwargs: special value or optional callback to use for arguments |
880 names of the arguments must correspond to those in names | 886 names of the arguments must correspond to those in names |
881 special values may be: | 887 special values may be: |