Mercurial > libervia-web
diff libervia/pages/photos/album/_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 | b028a1256a09 |
children | 5ea06e8b06ed |
line wrap: on
line diff
--- a/libervia/pages/photos/album/_browser/__init__.py Fri Apr 07 15:20:40 2023 +0200 +++ b/libervia/pages/photos/album/_browser/__init__.py Sat Apr 08 13:44:11 2023 +0200 @@ -1,7 +1,7 @@ from browser import document, window, bind, html, DOMNode, aio from javascript import JSON -from bridge import Bridge -from aio_bridge import Bridge as AIOBridge +from bridge import bridge +from aio_bridge import bridge as AIOBridge from template import Template import dialog from slideshow import SlideShow @@ -19,7 +19,7 @@ affiliations = window.affiliations.to_dict() except AttributeError: pass -bridge = Bridge() +bridge = bridge() aio_bridge = AIOBridge() alt_media_player.install_if_needed() @@ -96,7 +96,7 @@ photo_elt.classList.add("progress_started") album_items <= photo_elt - bridge.fileHTTPUploadGetSlot( + bridge.file_http_upload_get_slot( file_.name, file_.size, file_.type or '', @@ -145,7 +145,7 @@ def delete_ok(evt, notif_elt, item_elt, item): file_path = f"{files_path.rstrip('/')}/{item['name']}" - bridge.fileSharingDelete( + bridge.file_sharing_delete( files_service, file_path, "", @@ -192,7 +192,7 @@ img_name = img_elt.src.rsplit('/', 1)[-1] img_size = img_blob.size - slot = await aio_bridge.fileHTTPUploadGetSlot( + slot = await aio_bridge.file_http_upload_get_slot( img_name, img_size, '', @@ -209,7 +209,7 @@ return extra = {"thumb_url": get_url} album_name = files_path.rsplit('/', 1)[-1] - await aio_bridge.interestsRegisterFileSharing( + await aio_bridge.interests_file_sharing_register( files_service, "photos", "",