Mercurial > libervia-web
changeset 1326:089742e065e3
pages (files/list, photos/album): updated thumbnails size limits
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Aug 2020 09:31:26 +0200 |
parents | 009542289bc9 |
children | e35de70f5295 |
files | libervia/pages/blog/view/atom.xml/page_meta.py libervia/pages/files/list/page_meta.py libervia/pages/photos/album/page_meta.py libervia/server/tasks/implicit/task_brython.py |
diffstat | 4 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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)
--- 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)
--- 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():