Mercurial > libervia-web
diff libervia/server/server.py @ 1287:1f26d8c2afc1
server: restricted_bridge first draft:
bridge with a limited set of methods, where arguments are checked or removed, and
security_limit is used. This bridge is used for calls from browser.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 16:47:51 +0200 |
parents | 0e4e413eb8db |
children | e30e96958fb7 |
line wrap: on
line diff
--- a/libervia/server/server.py Fri Jun 19 16:47:51 2020 +0200 +++ b/libervia/server/server.py Fri Jun 19 16:47:51 2020 +0200 @@ -62,6 +62,7 @@ from libervia.server.constants import Const as C from libervia.server import session_iface +from .restricted_bridge import RestrictedBridge log = getLogger(__name__) @@ -815,6 +816,7 @@ self.cache_root_dir = os.path.join(self.local_dir, C.CACHE_DIR) self.renderer = template.Renderer(self, self._front_url_filter) sites_names = list(self.renderer.sites_paths.keys()) + self.restricted_bridge = RestrictedBridge(self) self._moveFirstLevelToDict(self.options, "url_redirections_dict", sites_names) self._moveFirstLevelToDict(self.options, "menu_json", sites_names)