Mercurial > sat_tmp
annotate sat_tmp/wokkel/__init__.py @ 88:298dac50ca73 default tip @
wokkel (pubsub): fix namespace in response of `subscriptionsGet`
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 16 Mar 2023 11:57:02 +0100 |
parents | 0f2536ae968f |
children |
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 |
77
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
20 installed = False |
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
|
21 |
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 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
|
23 """Monkey patch Wokkel to have improvments implemented here""" |
77
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
24 global installed |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
25 if not installed: |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
26 from twisted.python import compat |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
27 compat._PY3 = True |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
28 import wokkel |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
29 from . import pubsub, rsm, mam, data_form |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
30 wokkel.pubsub = pubsub |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
31 wokkel.rsm = rsm |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
32 wokkel.mam = mam |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
33 data_form.install() |
0f2536ae968f
wokkel: new "installed" boolean, set to True when patches are applied
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
34 installed = True |