Mercurial > libervia-web
comparison libervia/server/tasks/implicit/task_brython.py @ 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 | 0e4e413eb8db |
children | f2ce8072d89d |
comparison
equal
deleted
inserted
replaced
1325:009542289bc9 | 1326:089742e065e3 |
---|---|
18 | 18 |
19 class Task(task.Task): | 19 class Task(task.Task): |
20 | 20 |
21 def prepare(self): | 21 def prepare(self): |
22 if "brython" not in self.resource.browser_modules: | 22 if "brython" not in self.resource.browser_modules: |
23 raise exceptions.CancelError(f"No brython module found") | 23 raise exceptions.CancelError("No brython module found") |
24 | 24 |
25 brython_js = self.build_path / "brython.js" | 25 brython_js = self.build_path / "brython.js" |
26 if not brython_js.is_file(): | 26 if not brython_js.is_file(): |
27 installed_ver = None | 27 installed_ver = None |
28 else: | 28 else: |