From c60add347406c42febc1210f46ad88e61c832ffd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sun, 3 Nov 2013 10:39:37 -0500 Subject: [PATCH] Clarify explorer text, have secret values present managed in password inputs --- confluent/httpapi.py | 2 +- confluent/messages.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/confluent/httpapi.py b/confluent/httpapi.py index f6041e60..3274deca 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -251,7 +251,7 @@ def _assemble_html(responses, resource, querydict): yield json.dumps(querydict, separators=(',', ': '), indent=4, sort_keys=True) yield '
' - yield 'Only values that have their' + yield 'Only fields that have their boxes checked will have their ' yield 'respective values honored by the confluent server.
' yield '' yield '' diff --git a/confluent/messages.py b/confluent/messages.py index 00966e32..48b96a8a 100644 --- a/confluent/messages.py +++ b/confluent/messages.py @@ -26,13 +26,17 @@ class ConfluentMessage(object): label = key value = '' note = '' + type = 'text' if 'value' in val: value = val['value'] if 'note' in val: note = '(' + val['note'] + ')' + if val['note'] == 'Encrypted': + type = 'password' + value = 'dummyvalue' snippet += label + ":" + \ - '%s' % ( - key, value, note) + '%s' % ( + type, key, value, note) snippet += '