2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-28 11:57:37 +00:00

Clarify explorer text, have secret values present managed in password inputs

This commit is contained in:
Jarrod Johnson 2013-11-03 10:39:37 -05:00
parent 659f85eaa0
commit c60add3474
2 changed files with 7 additions and 3 deletions

View File

@ -251,7 +251,7 @@ def _assemble_html(responses, resource, querydict):
yield json.dumps(querydict, separators=(',', ': '),
indent=4, sort_keys=True)
yield '<hr>'
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.<hr>'
yield '<input type="hidden" name="restexplorerop" value="update">'
yield '<input type="hidden" name="restexplorerhonorkey" value="">'

View File

@ -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 + ":" + \
'<input type="text" name="%s" value="%s">%s' % (
key, value, note)
'<input type="%s" name="%s" value="%s">%s' % (
type, key, value, note)
snippet += '<input type="checkbox" name="restexplorerhonorkey" '
snippet += 'value="%s">' % (key)
return snippet