import items
This commit is contained in:
parent
e41942ea99
commit
823ae2a676
11 changed files with 181 additions and 36 deletions
|
|
@ -183,6 +183,8 @@ actions.register(scan, cache=False)
|
|||
|
||||
@returns_json
|
||||
def _import(request):
|
||||
state.main.add_callback(state.websockets[0].put, json.dumps(['import', {}]))
|
||||
data = json.loads(request.form['data']) if 'data' in request.form else {}
|
||||
print 'api.import', data
|
||||
state.main.add_callback(state.websockets[0].put, json.dumps(['import', data]))
|
||||
return {}
|
||||
actions.register(_import, 'import', cache=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue