Mercurial > libervia-web
comparison libervia/pages/_browser/invitation.py @ 1510:5ea06e8b06ed
browser: make bridge API closer to the one use with other frontends:
`bridge.AsyncBridge` is not used instead of `aio_bridge.Bridge`
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 22 May 2023 11:57:44 +0200 |
parents | 106bae41f5c8 |
children |
comparison
equal
deleted
inserted
replaced
1509:106bae41f5c8 | 1510:5ea06e8b06ed |
---|---|
1 from browser import document, window, timer | 1 from browser import document, window, timer |
2 from bridge import bridge | 2 from bridge import Bridge |
3 from template import Template | 3 from template import Template |
4 import dialog | 4 import dialog |
5 from cache import cache | 5 from cache import cache |
6 import javascript | 6 import javascript |
7 | 7 |
8 bridge = bridge() | 8 bridge = Bridge() |
9 # we use JS RegExp because Python's re is really long to import in Brython | 9 # we use JS RegExp because Python's re is really long to import in Brython |
10 # FIXME: this is a naive JID regex, a more accurate should be used instead | 10 # FIXME: this is a naive JID regex, a more accurate should be used instead |
11 jid_re = javascript.RegExp.new(r"^\w+@\w+\.\w+") | 11 jid_re = javascript.RegExp.new(r"^\w+@\w+\.\w+") |
12 | 12 |
13 | 13 |