Module: check_mk
Branch: master
Commit: d421a1a2b2d46fb84d24203fe30b46a8b68cccb1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d421a1a2b2d46f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 22 18:42:45 2013 -0400
FIX exception: use html instead of htmllib
---
web/htdocs/wato.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index c6a0a94..bb9fc1d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5288,7 +5288,7 @@ def mode_snapshot(phase):
c = wato_confirm(_("Confirm deletion of snapshot"),
_("Are you sure you want to delete the snapshot
<br><br>%s?") %
- htmllib.attrencode(delete_file)
+ html.attrencode(delete_file)
)
if c:
os.remove(os.path.join(snapshot_dir, delete_file))
@@ -5305,12 +5305,12 @@ def mode_snapshot(phase):
c = wato_confirm(_("Confirm restore snapshot"),
_("Are you sure you want to restore the snapshot
<br><br>%s ?") %
- htmllib.attrencode(snapshot_file)
+ html.attrencode(snapshot_file)
)
if c:
multitar.extract_from_file(snapshot_dir + snapshot_file, backup_paths)
log_pending(SYNCRESTART, None, "snapshot-restored",
- _("Restored snapshot %s") %
htmllib.attrencode(snapshot_file))
+ _("Restored snapshot %s") %
html.attrencode(snapshot_file))
return None, _("Successfully restored snapshot.")
elif c == False: # not yet confirmed
return ""