Internal error:: name 'Filter' is not defined" in manual setups (
using
setup.py)
Message-ID: <5459dda2.PPKAxdWDOVOqgWQU%lm(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 4efef2e6bd0cbaa268e4716a3dc43ad25776ce1c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4efef2e6bd0cba…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 5 09:19:29 2014 +0100
#1487 FIX Fixed exception in Web GUI "Internal error:: name 'Filter' is not
defined" in manual setups (using setup.py)
Previous versions shipped the file web/plugins/views/filters.py. This file is deprecated
now, but manual
setups of Check_MK (the ones using setup.py to install Check_MK) have the file left after
an update. To
workaround this issue, we ship an empty dummy file now to replace the original one.
If you like to fix this problem manually without applying this update, just remove the
file
web/plugins/views/filters.py from your installation.
---
.werks/1487 | 15 +++++++++++++++
ChangeLog | 1 +
web/plugins/views/filters.py | 30 ++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+)
diff --git a/.werks/1487 b/.werks/1487
new file mode 100644
index 0000000..9313017
--- /dev/null
+++ b/.werks/1487
@@ -0,0 +1,15 @@
+Title: Fixed exception in Web GUI "Internal error:: name 'Filter' is not
defined" in manual setups (using setup.py)
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1415175416
+
+Previous versions shipped the file web/plugins/views/filters.py. This file is deprecated
now, but manual
+setups of Check_MK (the ones using setup.py to install Check_MK) have the file left after
an update. To
+workaround this issue, we ship an empty dummy file now to replace the original one.
+
+If you like to fix this problem manually without applying this update, just remove the
file
+web/plugins/views/filters.py from your installation.
diff --git a/ChangeLog b/ChangeLog
index 34bcc09..5851996 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,7 @@
* 1166 FIX: Also prevting stylesheet update issues during version updates (just like
for JS files)
* 1481 FIX: Fix broken layout of Host-, Service- and Contactgroup filters
* 1482 FIX: Fix exception when editing a visual of type single host group...
+ * 1487 FIX: Fixed exception in Web GUI "Internal error:: name 'Filter'
is not defined" in manual setups (using setup.py)...
WATO:
* 1170 Added buttons to move rules to top/bottom of the list to ruleset edit dialog
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
new file mode 100644
index 0000000..b392955
--- /dev/null
+++ b/web/plugins/views/filters.py
@@ -0,0 +1,30 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2014 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at
http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+# This file was shipped with Check_MK previous to 1.2.5i6. To prevent
+# problems during updaate, this dummy file is shipped. It overwrites
+# the outdated existing file and invalidates it. This can be removed
+# in later versions.