equal
deleted
inserted
replaced
50 output.append(input_by_ID.get(ID,_default(ID))) |
50 output.append(input_by_ID.get(ID,_default(ID))) |
51 return output |
51 return output |
52 |
52 |
53 def GetData(project_path): |
53 def GetData(project_path): |
54 loaded_data = _LoadData(project_path) |
54 loaded_data = _LoadData(project_path) |
55 psk_files = os.listdir(_pskpath(project_path)) |
55 if loaded_data: |
56 return _filterData(psk_files, loaded_data) |
56 psk_files = os.listdir(_pskpath(project_path)) |
|
57 return _filterData(psk_files, loaded_data) |
|
58 return [] |
57 |
59 |
58 def DeleteID(project_path, ID): |
60 def DeleteID(project_path, ID): |
59 secret_path = os.path.join(_pskpath(project_path), ID+'.secret') |
61 secret_path = os.path.join(_pskpath(project_path), ID+'.secret') |
60 os.remove(secret_path) |
62 os.remove(secret_path) |
61 |
63 |