Mercurial > libervia-web
diff libervia/pages/_browser/editor.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 | 925a7c498cda |
children | 5ea06e8b06ed |
line wrap: on
line diff
--- a/libervia/pages/_browser/editor.py Fri Apr 07 15:20:40 2023 +0200 +++ b/libervia/pages/_browser/editor.py Sat Apr 08 13:44:11 2023 +0200 @@ -4,11 +4,11 @@ from browser.local_storage import storage from browser.object_storage import ObjectStorage from javascript import JSON -from aio_bridge import Bridge, BridgeException +from aio_bridge import bridge, BridgeException from template import Template import dialog -bridge = Bridge() +bridge = bridge() object_storage = ObjectStorage(storage) profile = window.profile @@ -214,7 +214,7 @@ data['tags'] = [t.strip() for t in tags.split(',') if t.strip()] try: preview_data = JSON.parse( - await bridge.mbPreview("", "", JSON.stringify(data)) + await bridge.mb_preview("", "", JSON.stringify(data)) ) except BridgeException as e: dialog.notification.show(