Mercurial > libervia-web
diff libervia/pages/photos/_browser/__init__.py @ 1509:106bae41f5c8
massive refactoring from camelCase -> snake_case. See backend commit log for more details
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Apr 2023 13:44:11 +0200 |
parents | dbd573b0bc9c |
children | 5ea06e8b06ed |
line wrap: on
line diff
--- a/libervia/pages/photos/_browser/__init__.py Fri Apr 07 15:20:40 2023 +0200 +++ b/libervia/pages/photos/_browser/__init__.py Sat Apr 08 13:44:11 2023 +0200 @@ -1,9 +1,9 @@ from browser import window, bind, DOMNode from javascript import JSON -from bridge import Bridge +from bridge import bridge import dialog -bridge = Bridge() +bridge = bridge() def album_delete_cb(item_elt, item): @@ -19,7 +19,7 @@ print(f"{item['name']} removed successfuly from list of interests") item_elt.classList.add("state_deleted") item_elt.bind("transitionend", lambda evt: item_elt.remove()) - bridge.fileSharingDelete( + bridge.file_sharing_delete( item['service'], item.get('path', ''), item.get('files_namespace', ''), @@ -34,7 +34,7 @@ def delete_ok(evt, notif_elt, item_elt, item): - bridge.interestRetract( + bridge.interest_retract( "", item['id'], callback=lambda: interest_retract_cb(item_elt, item), errback=lambda failure:interest_retract_eb(failure, item_elt, item))