From 33cef53495ced1881ac70e9ebb5057286ca591c8 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 18 Mar 2021 22:35:59 +0100 Subject: [PATCH] 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`. --- sat/plugins/__init__.py | 4 ---- twisted/plugins/sat_plugin.py | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sat/plugins/__init__.py b/sat/plugins/__init__.py index 5f2f1004..e69de29b 100644 --- a/sat/plugins/__init__.py +++ b/sat/plugins/__init__.py @@ -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() diff --git a/twisted/plugins/sat_plugin.py b/twisted/plugins/sat_plugin.py index 064e3698..f579a62e 100644 --- a/twisted/plugins/sat_plugin.py +++ b/twisted/plugins/sat_plugin.py @@ -26,6 +26,11 @@ from twisted.application.service import IServiceMaker 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"""