changeset 3476:11003f9f92fb

core: moved `sat_tmp.wokkel` install `sat_plugin`: This patch need to be installed early so it's available before anything imports `wokkel.data_form`.
author Goffi <goffi@goffi.org>
date Thu, 18 Mar 2021 22:35:59 +0100
parents 3ac28e51a24f
children 9498f32ba6f7
files sat/plugins/__init__.py twisted/plugins/sat_plugin.py
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/__init__.py	Thu Mar 18 20:46:18 2021 +0100
+++ b/sat/plugins/__init__.py	Thu Mar 18 22:35:59 2021 +0100
@@ -1,4 +0,0 @@
-# XXX: the Monkey Patch is here and not in src/__init__ to avoir issues with pyjamas compilation
-# TODO: remove this when changes are merged in Wokkel
-from sat_tmp.wokkel import install
-install()
--- a/twisted/plugins/sat_plugin.py	Thu Mar 18 20:46:18 2021 +0100
+++ b/twisted/plugins/sat_plugin.py	Thu Mar 18 22:35:59 2021 +0100
@@ -26,6 +26,11 @@
 from sat.core.constants import Const as C
 from sat.core.i18n import _
 
+from sat_tmp.wokkel import install as install_wokkel_patches
+
+
+install_wokkel_patches()
+
 
 def initialise(options):
     """Method to initialise global modules"""