diff --git a/confluent/httpapi.py b/confluent/httpapi.py index 4c2f8921..dece786a 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -247,36 +247,35 @@ def resourcehandler(env, start_response): def _assemble_html(responses, resource, querydict, url): - yield '' - yield 'Confluent REST Explorer: ' + resource + '' - yield '
' + yield '' \ + 'Confluent REST Explorer: ' + resource + '' \ + '' if querydict: - yield 'Response to input data:
' - yield json.dumps(querydict, separators=(',', ': '), - indent=4, sort_keys=True) - yield '
' - yield 'Only fields that have their boxes checked will have their ' - yield 'respective values honored by the confluent server.
' - yield '' - yield '%s
' % (resource, resource) + yield 'Response to input data:
' + \ + json.dumps(querydict, separators=(',', ': '), + indent=4, sort_keys=True) + '
' + yield 'Only fields that have their boxes checked will have their ' \ + 'respective values honored by the confluent server.
' \ + '' + \ + '%s
' % (resource, resource) if url == '/': iscollection = True elif resource[-1] == '/': iscollection = True yield '../
' + else: iscollection = False yield './
' pendingrsp = [] for rsp in responses: if isinstance(rsp, confluent.messages.LinkRelation): - yield rsp.html() - yield "
" + yield rsp.html() + "
" else: pendingrsp.append(rsp) for rsp in pendingrsp: - yield rsp.html() - yield "
" + yield rsp.html()+ "
" + print url if not iscollection: yield '
' diff --git a/confluent/pluginapi.py b/confluent/pluginapi.py index 44d43626..cdac95f0 100644 --- a/confluent/pluginapi.py +++ b/confluent/pluginapi.py @@ -112,6 +112,8 @@ def delete_node_collection(collectionpath, configmanager): node = collectionpath[-1] configmanager.del_nodes([node]) yield msg.DeletedResource() + else: + raise Exception("Not implemented") def enumerate_node_collection(collectionpath, configmanager): if collectionpath == [ 'node' ]: #it is simple '/node/', need a list of nodes