Module: check_mk
Branch: master
Commit: 3a65ba09a9d11233340fae9c06eb848b393579ce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3a65ba09a9d112…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 7 20:02:03 2018 +0200
6057 Changed GUI internal API functions
Change-Id: I57c8303ca9b421756d9ecccd0e6aade815e71fa5
---
.werks/6057 | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)
diff --git a/.werks/6057 b/.werks/6057
new file mode 100644
index 0000000..9eb267c
--- /dev/null
+++ b/.werks/6057
@@ -0,0 +1,96 @@
+Title: Changed GUI internal API functions
+Level: 2
+Component: multisite
+Compatible: incomp
+Edition: cre
+Version: 1.6.0i1
+Date: 1525714596
+Class: feature
+
+During development of version 1.6 we have made a lot of internal changes
+to the GUI internal code. In case you developed you own GUI extensions, you
+may likely be affected by this. The following table tries to summarize the
+most relevant changes to make it easier for you to port your custom code:
+
+<h3>Moved exceptions to <tt>gui_exceptions</tt> module</h3>
+
+Use <tt>from gui_exceptions import ..</tt> to import the exception objects
+you need. Available are: MKAuthException, MKUnauthenticatedException, MKGeneralException,
MKUserError, MKInternalError.
+
+<h3>Moved lqencode() to livestatus module</h3>
+
+Use <tt>import livestatus</tt> and
<tt>livestatus.lqencode()</tt>.
+
+<h3>Moved format_plugin_output() to views</h3>
+
+Use <tt>import view</tt> and
<tt>views.format_plugin_output()</tt>.
+
+<h3>Moved make_nagios_directory() and make_nagios_directories() to
cmk.store</h3>
+
+Use <tt>import cmk.store</tt> and <tt>cmk.store.mkdir()</tt> or
<tt>cmk.store.makedirs()</tt>.
+
+<h3>Dropped create_user_file()</h3>
+
+Use <tt>cmk.store.save_file()</tt> instead.
+
+<h3>Dropped bytes_human_readable()</h3>
+
+Use <tt>cmk.render.bytes()</tt> instead.
+
+<h3>Dropped date_human_readable()</h3>
+
+Use <tt>cmk.render.date()</tt> instead.
+
+<h3>Dropped percent_human_redable()</h3>
+
+Use <tt>cmk.render.percent()</tt> instead.
+
+<h3>Moved make_utf8() to cmk.utils</h3>
+
+Use <tt>cmk.utils.make_utf8()</tt>.
+
+<h3>Moved quote_shell_string() to cmk.utils</h3>
+
+Use <tt>cmk.utils.quote_shell_string()</tt>.
+
+<h3>Moved pnp_cleanup() to cmk.utils</h3>
+
+Use <tt>cmk.utils.pnp_cleanup()</tt>.
+
+<h3>Moved aquire_lock(), release_all_locks(), have_lock() and release_lock() to
cmk.store</h3>
+
+Use e.g. <tt>cmk.store.aquire_lock()</tt>.
+
+<h3>Dropped age_human_readable()</h3>
+
+Use <tt>cmk.render.approx_age()</tt> instead.
+
+<h3>Moved render_scientific() to cmk.render</h3>
+
+Use <tt>cmk.render.scientific()</tt>.
+
+<h3>Moved render_scientific() to cmk.render</h3>
+
+Use <tt>cmk.render.physical_precision()</tt>.
+
+<h3>Moved several functions to new utils module</h3>
+
+Use e.g. <tt>utils.drop_dotzero()</tt>.
+
+These have moved been moved:
+
+<ul>
+<li><tt>drop_dotzero()</tt></li>
+<li><tt>cmp_version()</tt></li>
+<li><tt>num_split()</tt></li>
+<li><tt>saveint()</tt></li>
+<li><tt>savefloat()</tt></li>
+<li><tt>get_random_string()</tt></li>
+<li><tt>gen_id()</tt></li>
+<li><tt>load_web_plugins()</tt></li>
+</ul>
+
+<h3>Dropped tryint()</h3>
+
+This has totally been dropped. Implement it on your own in case
+you really need this.