Mercurial > libervia-web
view libervia/web/pages/blog/edit/page_meta.py @ 1549:e47c24204449
browser (calls): update call to handle search, control buttons, and better UI/UX:
- adapt to backend changes
- UI and WebRTC parts are not separated
- users can now be searched
- add mute/fullscreen buttons
- ring
- cancellable dialog when a call is received
- status of the call
- animations
- various UI/UX improvments
rel 423
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 09 Aug 2023 00:22:18 +0200 (19 months ago) |
parents | eb00d593801d |
children |
line wrap: on
line source
#!/usr/bin/env python3 from libervia.web.server.constants import Const as C from libervia.backend.core.log import getLogger from libervia.backend.tools.common import data_format log = getLogger(__name__) name = "blog_edit" access = C.PAGES_ACCESS_PROFILE template = "blog/publish.html" async def on_data_post(self, request): profile = self.get_profile(request) if profile is None: self.page_error(request, C.HTTP_FORBIDDEN) request_data = self.get_r_data(request) title, tags, body = self.get_posted_data(request, ('title', 'tags', 'body')) mb_data = {"content_rich": body, "allow_comments": True} title = title.strip() if title: mb_data["title_rich"] = title tags = [t.strip() for t in tags.split(',') if t.strip()] if tags: mb_data["tags"] = tags await self.host.bridge_call( 'mb_send', "", "", data_format.serialise(mb_data), profile ) request_data["post_redirect_page"] = self.get_page_by_name("blog")