Mercurial > libervia-web
comparison libervia/web/pages/photos/album/_browser/__init__.py @ 1531:d7c78722e4f8
browser (cache): make `fill_identities` async + use `json` module:
- `json` module has been greatly improved in Brython, the former workaround is not needed
anymore.
- `fill_identities` is now async so an async method can wait for it to complete
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 22 Jun 2023 16:35:34 +0200 |
parents | eb00d593801d |
children | 106945841fbc |
comparison
equal
deleted
inserted
replaced
1530:b338c31d5251 | 1531:d7c78722e4f8 |
---|---|
291 @bind("#button_manage", "click") | 291 @bind("#button_manage", "click") |
292 def manage_click(evt): | 292 def manage_click(evt): |
293 evt.stopPropagation() | 293 evt.stopPropagation() |
294 evt.preventDefault() | 294 evt.preventDefault() |
295 manager = InvitationManager("photos", {"service": files_service, "path": files_path}) | 295 manager = InvitationManager("photos", {"service": files_service, "path": files_path}) |
296 manager.attach(affiliations=affiliations) | 296 aio.run(manager.attach(affiliations=affiliations)) |
297 | 297 |
298 | 298 |
299 # hint | 299 # hint |
300 @bind("#hint .click_to_delete", "click") | 300 @bind("#hint .click_to_delete", "click") |
301 def remove_hint(evt): | 301 def remove_hint(evt): |