mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Fix HTML view for simple string values
Simple string values were incorrectly treated in the HTML view. Fix it so the data is actually readable.
This commit is contained in:
parent
f7b5280d6a
commit
bb03e4a961
@ -138,7 +138,8 @@ class ConfluentMessage(object):
|
||||
'<input type="checkbox" name="restexplorerhonorkey" '
|
||||
'value="{1}">\r').format(valtype, key, self.desc)
|
||||
return snippet
|
||||
if isinstance(val, bool):
|
||||
if (isinstance(val, bool) or isinstance(val, str) or
|
||||
isinstance(val, unicode)):
|
||||
value = str(val)
|
||||
elif val is not None and 'value' in val:
|
||||
value = val['value']
|
||||
|
Loading…
Reference in New Issue
Block a user