# HG changeset patch # User Goffi # Date 1597390286 -7200 # Node ID 089742e065e39a98fe3a74f5f10a3c4fe81f5b53 # Parent 009542289bc9146a875457b16af45461f11ad63d pages (files/list, photos/album): updated thumbnails size limits diff -r 009542289bc9 -r 089742e065e3 libervia/pages/blog/view/atom.xml/page_meta.py --- a/libervia/pages/blog/view/atom.xml/page_meta.py Fri Aug 14 09:09:03 2020 +0200 +++ b/libervia/pages/blog/view/atom.xml/page_meta.py Fri Aug 14 09:31:26 2020 +0200 @@ -1,8 +1,6 @@ #!/usr/bin/env python3 - from libervia.server.constants import Const as C -from twisted.internet import defer from sat.tools.common import uri import time diff -r 009542289bc9 -r 089742e065e3 libervia/pages/files/list/page_meta.py --- a/libervia/pages/files/list/page_meta.py Fri Aug 14 09:09:03 2020 +0200 +++ b/libervia/pages/files/list/page_meta.py Fri Aug 14 09:31:26 2020 +0200 @@ -24,7 +24,7 @@ async def prepare_render(self, request): data = self.getRData(request) - thumb_limit = data.get("thumb_limit", 300) + thumb_limit = data.get("thumb_limit", 400) template_data = request.template_data service, path_elts = data["service"], data["path"] path = Path('/', *path_elts) diff -r 009542289bc9 -r 089742e065e3 libervia/pages/photos/album/page_meta.py --- a/libervia/pages/photos/album/page_meta.py Fri Aug 14 09:09:03 2020 +0200 +++ b/libervia/pages/photos/album/page_meta.py Fri Aug 14 09:31:26 2020 +0200 @@ -17,7 +17,7 @@ def prepare_render(self, request): data = self.getRData(request) - data["thumb_limit"] = 1200 + data["thumb_limit"] = 800 data["retrieve_comments"] = True files_page = self.getPageByName("files_list") return files_page.prepare_render(self, request) diff -r 009542289bc9 -r 089742e065e3 libervia/server/tasks/implicit/task_brython.py --- a/libervia/server/tasks/implicit/task_brython.py Fri Aug 14 09:09:03 2020 +0200 +++ b/libervia/server/tasks/implicit/task_brython.py Fri Aug 14 09:31:26 2020 +0200 @@ -20,7 +20,7 @@ def prepare(self): if "brython" not in self.resource.browser_modules: - raise exceptions.CancelError(f"No brython module found") + raise exceptions.CancelError("No brython module found") brython_js = self.build_path / "brython.js" if not brython_js.is_file():