comparison libervia/pages/files/list/page_meta.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 009542289bc9
children 886d1856e9de
comparison
equal deleted inserted replaced
1325:009542289bc9 1326:089742e065e3
22 self.getPathArgs(request, ["service", "*path"], min_args=1, service="jid", path="") 22 self.getPathArgs(request, ["service", "*path"], min_args=1, service="jid", path="")
23 23
24 24
25 async def prepare_render(self, request): 25 async def prepare_render(self, request):
26 data = self.getRData(request) 26 data = self.getRData(request)
27 thumb_limit = data.get("thumb_limit", 300) 27 thumb_limit = data.get("thumb_limit", 400)
28 template_data = request.template_data 28 template_data = request.template_data
29 service, path_elts = data["service"], data["path"] 29 service, path_elts = data["service"], data["path"]
30 path = Path('/', *path_elts) 30 path = Path('/', *path_elts)
31 profile = self.getProfile(request) or C.SERVICE_PROFILE 31 profile = self.getProfile(request) or C.SERVICE_PROFILE
32 session_data = self.host.getSessionData( 32 session_data = self.host.getSessionData(