Mercurial > libervia-web
comparison libervia/pages/events/rsvp/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 |
---|---|
6 from twisted.internet import defer | 6 from twisted.internet import defer |
7 from twisted.words.protocols.jabber import jid | 7 from twisted.words.protocols.jabber import jid |
8 from sat.core.log import getLogger | 8 from sat.core.log import getLogger |
9 from sat.tools.common.template import safe | 9 from sat.tools.common.template import safe |
10 import time | 10 import time |
11 import cgi | 11 import html |
12 | 12 |
13 """creation of new events""" | 13 """creation of new events""" |
14 | 14 |
15 name = "event_rsvp" | 15 name = "event_rsvp" |
16 access = C.PAGES_ACCESS_PROFILE | 16 access = C.PAGES_ACCESS_PROFILE |
56 html { | 56 html { |
57 background-image: url("%s"); | 57 background-image: url("%s"); |
58 background-size: 15em; | 58 background-size: 15em; |
59 } | 59 } |
60 """ | 60 """ |
61 % cgi.escape(background_image, True) | 61 % html.escape(background_image, True) |
62 ) | 62 ) |
63 template_data["event"] = event_data | 63 template_data["event"] = event_data |
64 event_invitee_data = yield self.host.bridgeCall( | 64 event_invitee_data = yield self.host.bridgeCall( |
65 "eventInviteeGet", | 65 "eventInviteeGet", |
66 event_data["invitees_service"], | 66 event_data["invitees_service"], |