1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Full symbol support on server

Fix #496
This commit is contained in:
Julien Duponchelle 2016-06-28 22:23:34 +02:00
parent e77445e860
commit 8ec11619cd
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
3 changed files with 5 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class Symbols:
'filename': file,
'builtin': False,
})
self._symbols_path[symbol_id] = os.path.join(get_resource("symbols"), file)
self._symbols_path[symbol_id] = os.path.join(directory, file)
symbols.sort(key=lambda x: x["filename"])

View File

@ -68,5 +68,6 @@ class SymbolHandler:
if not packet:
break
f.write(packet)
# Reset the symbol list
controller.symbols.list()
response.set_status(204)

View File

@ -49,4 +49,5 @@ def test_upload(http_controller, symbols_dir):
with open(os.path.join(symbols_dir, "test2")) as f:
assert f.read() == "TEST"
response = http_controller.get('/symbols/test2/raw')
assert response.status == 200