Module: check_mk
Branch: master
Commit: a16d8128350d064fbb6b478de97aec3a85b865eb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a16d8128350d06…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 26 16:21:34 2013 +0100
FixedValue: support Unicode
---
web/htdocs/valuespec.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index a229732..a2526ea 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -122,6 +122,8 @@ class FixedValue(ValueSpec):
def value_to_text(self, value):
if self._totext != None:
return self._totext
+ elif type(value) == unicode:
+ return value
else:
return str(value)