Module: check_mk
Branch: master
Commit: 5c83f19cfe19ba77c133edc221ef21e369b370b3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5c83f19cfe19ba…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 9 11:01:51 2016 +0200
Fixed missing import
---
web/htdocs/valuespec.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 45b33ac..dc87769 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -34,6 +34,7 @@
import math, os, time, re, sre_constants, urlparse, forms, tempfile
import socket
from lib import *
+import cmk.defines as defines
def type_name(v):
try:
@@ -2041,14 +2042,14 @@ class RelativeDate(OptionalDropdownChoice):
weekday = time.localtime(today()).tm_wday
for w in range(2, 7):
wd = (weekday + w) % 7
- choices.append((w, weekday_name(wd)))
+ choices.append((w, defines.weekday_name(wd)))
for w in range(0, 7):
wd = (weekday + w) % 7
if w < 2:
title = _(" next week")
else:
title = _(" in %d days") % (w + 7)
- choices.append((w + 7, weekday_name(wd) + title))
+ choices.append((w + 7, defines.weekday_name(wd) + title))
kwargs['choices'] = choices
kwargs['explicit'] = Integer()