Mercurial > libervia-web
comparison libervia/pages/events/view/page_meta.py @ 1229:acec8e9185db
pages: replaced deprecated `cgi.escape` by `html.escape`
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 18 Nov 2019 21:49:42 +0100 |
parents | b2d067339de3 |
children | b32b74dfe866 |
comparison
equal
deleted
inserted
replaced
1228:f3edbca73713 | 1229:acec8e9185db |
---|---|
7 from twisted.words.protocols.jabber import jid | 7 from twisted.words.protocols.jabber import jid |
8 from libervia.server import session_iface | 8 from libervia.server import session_iface |
9 from sat.tools.common import uri | 9 from sat.tools.common import uri |
10 from sat.tools.common.template import safe | 10 from sat.tools.common.template import safe |
11 import time | 11 import time |
12 import cgi | 12 import html |
13 from sat.core.log import getLogger | 13 from sat.core.log import getLogger |
14 | 14 |
15 name = "event_view" | 15 name = "event_view" |
16 access = C.PAGES_ACCESS_PROFILE | 16 access = C.PAGES_ACCESS_PROFILE |
17 template = "event/invitation.html" | 17 template = "event/invitation.html" |
53 html { | 53 html { |
54 background-image: url("%s"); | 54 background-image: url("%s"); |
55 background-size: 15em; | 55 background-size: 15em; |
56 } | 56 } |
57 """ | 57 """ |
58 % cgi.escape(background_image, True) | 58 % html.escape(background_image, True) |
59 ) | 59 ) |
60 template_data["event"] = event_data | 60 template_data["event"] = event_data |
61 event_invitee_data = yield self.host.bridgeCall( | 61 event_invitee_data = yield self.host.bridgeCall( |
62 "eventInviteeGet", | 62 "eventInviteeGet", |
63 event_data["invitees_service"], | 63 event_data["invitees_service"], |