Module: check_mk
Branch: master
Commit: b1aa4b86b5e7beeee2e882fc821d93c2e2084711
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1aa4b86b5e7be…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 5 12:06:34 2011 +0200
Creating pending log entry for changed file/folder titles
---
web/htdocs/wato.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ec33a70..cd13efa 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -379,12 +379,16 @@ def mode_editfolder(phase, what, new):
else:
new_thing["num_hosts"] = 0
g_files[newpath] = new_thing
-
+
g_folder["." + what + "s"][name] = new_thing
log_audit(new_thing, "new-" + what, _("Created new %s
%s") % (the_what, title))
call_hook_file_or_folder_created(what, new_thing)
else:
+ if the_thing["title"] != title:
+ log_pending(the_thing, "edit-" + what, _("Changed title of
%s from \"%s\" to \"%s\"") %
+ (the_what,
the_thing["title"], title))
+
the_thing["title"] = title
the_thing["roles"] = roles
the_thing["attributes"] = attributes