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:
parent
c6ed89c3d7
commit
11a86963c4
@ -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 '['
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user