mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +00:00 
			
		
		
		
	Back off on the table attempt in the rest explorer interface
This commit is contained in:
		@@ -229,11 +229,9 @@ def resourcehandler(env, start_response):
 | 
			
		||||
        if mimetype == 'text/html':
 | 
			
		||||
            yield '<html><body><form action="' + resource + '" method="post">'
 | 
			
		||||
            yield '<input type="hidden" name="restexplorerop" value="update">'
 | 
			
		||||
            yield "<table><tr><td></td><td>Ignore on submit</td></tr><br>"
 | 
			
		||||
            for rsp in hdlr:
 | 
			
		||||
                yield rsp.html()
 | 
			
		||||
                yield "<br>"
 | 
			
		||||
            yield "</table>"
 | 
			
		||||
            yield '<input type="submit"></form></body></html>'
 | 
			
		||||
        else:
 | 
			
		||||
            yield '['
 | 
			
		||||
 
 | 
			
		||||
@@ -31,14 +31,11 @@ class ConfluentMessage(object):
 | 
			
		||||
                value = val['value']
 | 
			
		||||
            if 'note' in val:
 | 
			
		||||
                note = '(' + val['note'] + ')'
 | 
			
		||||
            snippet += "<tr><td>"
 | 
			
		||||
            snippet += label + ":" + \
 | 
			
		||||
                       '<input type="text" name="%s" value="%s">%s' % (
 | 
			
		||||
                            key, value, note)
 | 
			
		||||
            snippet += "</td><td>"
 | 
			
		||||
            snippet += '<input type="checkbox" name="restexplorerignorekey" '
 | 
			
		||||
            snippet += 'value="%s" checked>' % (key)
 | 
			
		||||
            snippet += "</td></tr>"
 | 
			
		||||
        return snippet
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user