diff sat_tmp/wokkel/__init__.py @ 61:1245269f9aab

wokkel: new data_form module to add support of XML element + new install() function to make patching easier.
author Goffi <goffi@goffi.org>
date Wed, 16 Jan 2019 09:17:57 +0100
parents c8cb4e867897
children a564fc84d5d0
line wrap: on
line diff
--- a/sat_tmp/wokkel/__init__.py	Wed Jan 16 09:09:13 2019 +0100
+++ b/sat_tmp/wokkel/__init__.py	Wed Jan 16 09:17:57 2019 +0100
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+# -*- test-case-name: wokkel.test.test_rsm -*-
+#
+# Series of Wokkel patches used by SàT
+# Copyright (C) 2015-2019 Jérôme Poisson (goffi@goffi.org)
+# Copyright (C) 2015 Adien Cossa (souliane@mailoo.org)
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+
+def install():
+    """Monkey patch Wokkel to have improvments implemented here"""
+    import wokkel
+    from . import pubsub, rsm, mam, data_form
+    wokkel.pubsub = pubsub
+    wokkel.rsm = rsm
+    wokkel.mam = mam
+    data_form.install()