annotate sat_tmp/wokkel/__init__.py @ 76:67508db07ea0

wokkel: workaround to make Wokkel work with latest version of Twisted: Latest version of Twisted has dropped Python 2.7 support, and thus removed `python.compat._PY3`. This patch works around this by settings it to True.
author Goffi <goffi@goffi.org>
date Thu, 18 Mar 2021 22:34:35 +0100
parents a564fc84d5d0
children 0f2536ae968f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
71
a564fc84d5d0 twisted: added Twisted module for Python 3.8 compatibility:
Goffi <goffi@goffi.org>
parents: 61
diff changeset
1 #!/usr/bin/env python3
61
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
2 #
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
3 # Series of Wokkel patches used by SàT
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
4 # Copyright (C) 2015-2019 Jérôme Poisson (goffi@goffi.org)
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
5 # Copyright (C) 2015 Adien Cossa (souliane@mailoo.org)
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
6
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
7 # This program is free software: you can redistribute it and/or modify
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
8 # it under the terms of the GNU Affero General Public License as published by
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
9 # the Free Software Foundation, either version 3 of the License, or
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
10 # (at your option) any later version.
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
11
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
12 # This program is distributed in the hope that it will be useful,
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
15 # GNU Affero General Public License for more details.
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
16
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
17 # You should have received a copy of the GNU Affero General Public License
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
19
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
20
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
21 def install():
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
22 """Monkey patch Wokkel to have improvments implemented here"""
76
67508db07ea0 wokkel: workaround to make Wokkel work with latest version of Twisted:
Goffi <goffi@goffi.org>
parents: 71
diff changeset
23 from twisted.python import compat
67508db07ea0 wokkel: workaround to make Wokkel work with latest version of Twisted:
Goffi <goffi@goffi.org>
parents: 71
diff changeset
24 compat._PY3 = True
61
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
25 import wokkel
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
26 from . import pubsub, rsm, mam, data_form
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
27 wokkel.pubsub = pubsub
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
28 wokkel.rsm = rsm
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
29 wokkel.mam = mam
1245269f9aab wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
Goffi <goffi@goffi.org>
parents: 45
diff changeset
30 data_form.install()