1 #!/usr/bin/env python |
1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- |
2 # -*- coding: utf-8 -*- |
3 |
3 |
4 # See COPYING file for copyrights details. |
4 # See COPYING file for copyrights details. |
5 |
5 |
6 from __future__ import absolute_import |
6 |
7 import os |
7 import os |
8 import time |
8 import time |
9 import json |
9 import json |
10 from zipfile import ZipFile |
10 from zipfile import ZipFile |
11 |
11 |
12 # PSK Management Data model : |
12 # PSK Management Data model : |
13 # [[ID,Desc, LastKnownURI, LastConnect]] |
13 # [[ID,Desc, LastKnownURI, LastConnect]] |
14 COL_ID, COL_URI, COL_DESC, COL_LAST = range(4) |
14 COL_ID, COL_URI, COL_DESC, COL_LAST = list(range(4)) |
15 REPLACE, REPLACE_ALL, KEEP, KEEP_ALL, CANCEL = range(5) |
15 REPLACE, REPLACE_ALL, KEEP, KEEP_ALL, CANCEL = list(range(5)) |
16 |
16 |
17 |
17 |
18 def _pskpath(project_path): |
18 def _pskpath(project_path): |
19 return os.path.join(project_path, 'psk') |
19 return os.path.join(project_path, 'psk') |
20 |
20 |