2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Actually have httpapi able to start calling into the plugin api

This commit is contained in:
Jarrod Johnson 2013-10-12 18:04:27 -04:00
parent 8a35f9a9e0
commit 97d3eebff6

View File

@ -5,8 +5,9 @@
# shillinabox javascript
import base64
import Cookie
import confluent.console as console
import confluent.auth as auth
import confluent.console as console
import confluent.pluginapi as pluginapi
import confluent.util as util
import eventlet
import json
@ -186,8 +187,10 @@ def resourcehandler(env, start_response):
rsp = json.dumps({'session': querydict['session'], 'data': 'DECODEERROR'})
start_response('200 OK', headers)
return [rsp]
start_response('404 Not Found', headers)
return ["404 Unrecognized resource"]
else:
pluginapi.handle_path(env['PATH_INFO'], 'retrieve', cfgmgr)
start_response('404 Not Found', headers)
return ["404 Unrecognized resource"]
def serve():