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

Add a check to influence the html form to act like update and ignore fields

This commit is contained in:
Jarrod Johnson 2013-11-03 00:43:05 -04:00
parent c6ed89c3d7
commit 11a86963c4
2 changed files with 4 additions and 1 deletions

View File

@ -215,9 +215,10 @@ def resourcehandler(env, start_response):
start_response('200 OK', headers)
if mimetype == 'text/html':
yield '<html><body><form action="' + resource + '" method="post">'
yield '<input type="hidden" name="restexplorerop" value="update">'
for rsp in hdlr:
yield rsp.html()
yield '<br>'
yield "<br>\n"
yield '</form></body></html>'
else:
yield '['

View File

@ -34,6 +34,8 @@ class ConfluentMessage(object):
snippet += label + ":" + \
'<input type="text" name="%s" value="%s">%s' % (
key, value, note)
snippet += '<input type="checkbox" name="restexplorerignorekey" '
snippet += 'value="%s" checked>' % (key)
return snippet