itkdb-gtk 0.0.18__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of itkdb-gtk might be problematic. Click here for more details.
- itkdb_gtk/{SendShipments.py → CreateShipments.py} +2 -3
- itkdb_gtk/GetShipments.py +0 -1
- itkdb_gtk/GlueWeight.py +5 -14
- itkdb_gtk/GroundVITests.py +0 -1
- itkdb_gtk/ITkDB.svg +11 -3
- itkdb_gtk/ITkDBlogin.py +0 -1
- itkdb_gtk/ITkDButils.py +5 -17
- itkdb_gtk/UploadModuleIV.py +2 -2
- itkdb_gtk/UploadMultipleTests.py +2 -6
- itkdb_gtk/UploadPetalInformation.py +8 -9
- itkdb_gtk/UploadTest.py +1 -4
- itkdb_gtk/WireBondGui.py +2 -1
- itkdb_gtk/__init__.py +8 -3
- itkdb_gtk/dashBoard.py +3 -3
- itkdb_gtk/dbGtkUtils.py +6 -17
- itkdb_gtk/readAVSdata.py +0 -7
- itkdb_gtk/readGoogleSheet.py +0 -1
- itkdb_gtk/untrash_component.py +1 -1
- {itkdb_gtk-0.0.18.dist-info → itkdb_gtk-0.9.0.dist-info}/METADATA +2 -2
- itkdb_gtk-0.9.0.dist-info/RECORD +27 -0
- {itkdb_gtk-0.0.18.dist-info → itkdb_gtk-0.9.0.dist-info}/entry_points.txt +2 -1
- itkdb_gtk-0.0.18.dist-info/RECORD +0 -27
- {itkdb_gtk-0.0.18.dist-info → itkdb_gtk-0.9.0.dist-info}/WHEEL +0 -0
- {itkdb_gtk-0.0.18.dist-info → itkdb_gtk-0.9.0.dist-info}/top_level.txt +0 -0
|
@@ -25,14 +25,13 @@ from gi.repository import Gtk, Gio, GLib
|
|
|
25
25
|
gtk_runs, gtk_args = Gtk.init_check()
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
class
|
|
28
|
+
class CreateShipments(dbGtkUtils.ITkDBWindow):
|
|
29
29
|
"""Create a shipment from input."""
|
|
30
30
|
|
|
31
31
|
def __init__(self, session):
|
|
32
32
|
"""Initialization.
|
|
33
33
|
|
|
34
34
|
Args:
|
|
35
|
-
----
|
|
36
35
|
session: ITkDB session.
|
|
37
36
|
|
|
38
37
|
"""
|
|
@@ -373,7 +372,7 @@ def main():
|
|
|
373
372
|
sys.exit()
|
|
374
373
|
|
|
375
374
|
client.user_gui = dlg
|
|
376
|
-
IS =
|
|
375
|
+
IS = CreateShipments(client)
|
|
377
376
|
IS.set_accept_focus(True)
|
|
378
377
|
IS.present()
|
|
379
378
|
IS.connect("destroy", Gtk.main_quit)
|
itkdb_gtk/GetShipments.py
CHANGED
itkdb_gtk/GlueWeight.py
CHANGED
|
@@ -33,12 +33,10 @@ def find_module(ifile, module_sn="MODULE_SN"):
|
|
|
33
33
|
"""Find the starting line of a module.
|
|
34
34
|
|
|
35
35
|
Args:
|
|
36
|
-
----
|
|
37
36
|
ifile: the input file object.
|
|
38
37
|
module_sn: tag t ostar t a new module.
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
------
|
|
39
|
+
Returns:
|
|
42
40
|
the SN of the module.
|
|
43
41
|
|
|
44
42
|
"""
|
|
@@ -67,12 +65,10 @@ def remove_defaul_keys(data, default_value=-9999):
|
|
|
67
65
|
"""Remove keys with deafault value.
|
|
68
66
|
|
|
69
67
|
Args:
|
|
70
|
-
----
|
|
71
68
|
data: Input dictionary
|
|
72
69
|
default_value: Defaultvalue. Defaults to -9999.
|
|
73
70
|
|
|
74
|
-
Returns
|
|
75
|
-
-------
|
|
71
|
+
Returns:
|
|
76
72
|
data: trimmed dictionary
|
|
77
73
|
|
|
78
74
|
"""
|
|
@@ -92,9 +88,8 @@ class GlueWeight(Gtk.Window):
|
|
|
92
88
|
|
|
93
89
|
def __init__(self, session, ifile=None):
|
|
94
90
|
"""Initialization.
|
|
95
|
-
|
|
91
|
+
|
|
96
92
|
Args:
|
|
97
|
-
----
|
|
98
93
|
session: ITkDB session_
|
|
99
94
|
ifile (optional): Input file. Defaults to None.
|
|
100
95
|
|
|
@@ -205,13 +200,11 @@ class GlueWeight(Gtk.Window):
|
|
|
205
200
|
"""Create the dialog for a DB test and add it to the notebook.
|
|
206
201
|
|
|
207
202
|
Args:
|
|
208
|
-
----
|
|
209
203
|
test_json: The JSon-like dict with the values
|
|
210
204
|
test_name: The name of the test for internal indexing
|
|
211
205
|
label: The label for the Notebook
|
|
212
206
|
|
|
213
|
-
|
|
214
|
-
------
|
|
207
|
+
Returns:
|
|
215
208
|
The box containing the data.
|
|
216
209
|
|
|
217
210
|
"""
|
|
@@ -271,12 +264,10 @@ class GlueWeight(Gtk.Window):
|
|
|
271
264
|
"""Parse a data file.
|
|
272
265
|
|
|
273
266
|
Args:
|
|
274
|
-
----
|
|
275
267
|
ifile (): A file object.
|
|
276
268
|
module_sep: tag to idenntify a new module.
|
|
277
269
|
|
|
278
|
-
Returns
|
|
279
|
-
-------
|
|
270
|
+
Returns:
|
|
280
271
|
a list of tests (json)
|
|
281
272
|
|
|
282
273
|
"""
|
itkdb_gtk/GroundVITests.py
CHANGED
itkdb_gtk/ITkDB.svg
CHANGED
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
sodipodi:docname="ITkDB.svg"
|
|
12
12
|
width="75"
|
|
13
13
|
height="60"
|
|
14
|
-
inkscape:version="1.2 (
|
|
14
|
+
inkscape:version="1.3.2 (091e20e, 2023-11-25)"
|
|
15
|
+
inkscape:export-filename="ITkDB.png"
|
|
16
|
+
inkscape:export-xdpi="96"
|
|
17
|
+
inkscape:export-ydpi="96"
|
|
15
18
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
16
19
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
17
20
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -40,8 +43,13 @@
|
|
|
40
43
|
showgrid="false"
|
|
41
44
|
inkscape:zoom="10.143094"
|
|
42
45
|
inkscape:cx="38.794869"
|
|
43
|
-
inkscape:cy="18.
|
|
44
|
-
inkscape:current-layer="
|
|
46
|
+
inkscape:cy="18.929135"
|
|
47
|
+
inkscape:current-layer="g9542"
|
|
48
|
+
inkscape:window-width="1368"
|
|
49
|
+
inkscape:window-height="1087"
|
|
50
|
+
inkscape:window-x="0"
|
|
51
|
+
inkscape:window-y="44"
|
|
52
|
+
inkscape:window-maximized="0" />
|
|
45
53
|
<g
|
|
46
54
|
id="g142"
|
|
47
55
|
transform="translate(14.828749,-1.5740459)">
|
itkdb_gtk/ITkDBlogin.py
CHANGED
itkdb_gtk/ITkDButils.py
CHANGED
|
@@ -50,7 +50,6 @@ def get_db_date(timestamp=None):
|
|
|
50
50
|
"""Convert a date string into the expected DB format.
|
|
51
51
|
|
|
52
52
|
Args:
|
|
53
|
-
----
|
|
54
53
|
timestamp: A date in string format
|
|
55
54
|
|
|
56
55
|
"""
|
|
@@ -81,13 +80,11 @@ def registerPetalCore(client, SN, alias, HC_id=None):
|
|
|
81
80
|
"""Register a Petal Core in the DB.
|
|
82
81
|
|
|
83
82
|
Args:
|
|
84
|
-
----
|
|
85
83
|
SN: Serial Number
|
|
86
84
|
alias: The alias of the Petal
|
|
87
85
|
HC_id: Comma separated list of HC identifiers.
|
|
88
86
|
|
|
89
|
-
Returns
|
|
90
|
-
-------
|
|
87
|
+
Returns:
|
|
91
88
|
_type_: _description_
|
|
92
89
|
|
|
93
90
|
"""
|
|
@@ -116,7 +113,6 @@ def create_component_attachment(client, SN, file_path, title=None, description="
|
|
|
116
113
|
"""Create an attachment to the given component.
|
|
117
114
|
|
|
118
115
|
Args:
|
|
119
|
-
----
|
|
120
116
|
client: The DB client
|
|
121
117
|
SN: The SN of the component.
|
|
122
118
|
file_path: The pat to th efile to be attached.
|
|
@@ -167,7 +163,6 @@ def set_component_property(client, SN, property, value):
|
|
|
167
163
|
"""Set the value of an object property.
|
|
168
164
|
|
|
169
165
|
Args:
|
|
170
|
-
----
|
|
171
166
|
client: The DB client
|
|
172
167
|
SN: The object SN
|
|
173
168
|
property: The property name
|
|
@@ -192,7 +187,6 @@ def assemble_component(client, parent, child):
|
|
|
192
187
|
"""Assemble child into parent.
|
|
193
188
|
|
|
194
189
|
Args:
|
|
195
|
-
----
|
|
196
190
|
client: The DB client
|
|
197
191
|
parent: The parent object or container.
|
|
198
192
|
child: The child to be assembled.
|
|
@@ -214,7 +208,6 @@ def set_object_stage(client, SN, stage):
|
|
|
214
208
|
"""Set stage of object
|
|
215
209
|
|
|
216
210
|
Args:
|
|
217
|
-
----
|
|
218
211
|
client: DB session
|
|
219
212
|
SN: Serial number
|
|
220
213
|
stage: Stage
|
|
@@ -247,13 +240,11 @@ def upload_test(client, data, attachments=None):
|
|
|
247
240
|
"""Upload a test to the DB.
|
|
248
241
|
|
|
249
242
|
Args:
|
|
250
|
-
----
|
|
251
243
|
client: The DB client
|
|
252
244
|
data (dict): A dictionary with all the elements of thee test.
|
|
253
|
-
attachments (
|
|
245
|
+
attachments ([Attachment]): one or more (in a list) Attachment to the test
|
|
254
246
|
|
|
255
247
|
Return:
|
|
256
|
-
------
|
|
257
248
|
resp: The response of the DB session.
|
|
258
249
|
|
|
259
250
|
"""
|
|
@@ -288,12 +279,11 @@ def upload_test(client, data, attachments=None):
|
|
|
288
279
|
return (str(e))
|
|
289
280
|
|
|
290
281
|
|
|
291
|
-
def create_shipment(session, sender, recipient, items, name=None, send=False,
|
|
292
|
-
attachment=None, comments=None):
|
|
282
|
+
def create_shipment(session, sender, recipient, items, name=None, send=False,
|
|
283
|
+
type="domestic", attachment=None, comments=None):
|
|
293
284
|
"""Create a chipment.
|
|
294
285
|
|
|
295
286
|
Args:
|
|
296
|
-
----
|
|
297
287
|
session : The itkdb session
|
|
298
288
|
sender : The sender ID
|
|
299
289
|
recipient : The recipient ID
|
|
@@ -301,7 +291,7 @@ def create_shipment(session, sender, recipient, items, name=None, send=False, ty
|
|
|
301
291
|
name: the name of the shipment.
|
|
302
292
|
send: If true, the status of the shipment is updated to inTransit
|
|
303
293
|
type (optional): Type of shipment. Defaults to "domestic".
|
|
304
|
-
attachment (optional): Attachment object.
|
|
294
|
+
attachment (optional, :class:`Attachment`): :class:`Attachment` object.
|
|
305
295
|
comments (optional): comments for the shipment
|
|
306
296
|
|
|
307
297
|
"""
|
|
@@ -437,7 +427,6 @@ def get_testrun(session, test_id, out_type="object"):
|
|
|
437
427
|
"""Retrieve information about a given test.
|
|
438
428
|
|
|
439
429
|
Args:
|
|
440
|
-
----
|
|
441
430
|
session : The itkdb session
|
|
442
431
|
test_id : The ID of the test.
|
|
443
432
|
out_type (optional): Type of output (full or object). Defaults to "object".
|
|
@@ -456,7 +445,6 @@ def get_test_skeleton(session, component, test_code, userdef={}, uservalues={}):
|
|
|
456
445
|
"""Get the skeleton of the given test.
|
|
457
446
|
|
|
458
447
|
Args:
|
|
459
|
-
----
|
|
460
448
|
session: The DB session
|
|
461
449
|
component: The component which is tested
|
|
462
450
|
test_code: The test code
|
itkdb_gtk/UploadModuleIV.py
CHANGED
|
@@ -574,8 +574,8 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
574
574
|
"""Find module (SN) on database
|
|
575
575
|
|
|
576
576
|
Args:
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
SN (str): Module Serial number.
|
|
578
|
+
|
|
579
579
|
"""
|
|
580
580
|
md = ITkDButils.get_DB_component(self.session, SN)
|
|
581
581
|
if md is None:
|
itkdb_gtk/UploadMultipleTests.py
CHANGED
|
@@ -39,14 +39,12 @@ def all_files(root, patterns='*', single_level=False, yield_folders=False):
|
|
|
39
39
|
"""A generator that reruns all files in the given folder.
|
|
40
40
|
|
|
41
41
|
Args:
|
|
42
|
-
----
|
|
43
42
|
root (file path): The folder
|
|
44
43
|
patterns (str, optional): The pattern of the files. Defaults to '*'.
|
|
45
44
|
single_level (bool, optional): If true, do not go into sub folders. Defaults to False.
|
|
46
45
|
yield_folders (bool, optional): If True, return folders as well. Defaults to False.
|
|
47
46
|
|
|
48
|
-
Yields
|
|
49
|
-
------
|
|
47
|
+
Yields:
|
|
50
48
|
str: file path name
|
|
51
49
|
|
|
52
50
|
"""
|
|
@@ -74,10 +72,9 @@ def check_data(data):
|
|
|
74
72
|
"""Checks validity of JSon data.
|
|
75
73
|
|
|
76
74
|
Args:
|
|
77
|
-
----
|
|
78
75
|
data (): The json data
|
|
79
76
|
|
|
80
|
-
Returns
|
|
77
|
+
Returns:
|
|
81
78
|
-------
|
|
82
79
|
boolean: True if valid, False otherwise.
|
|
83
80
|
|
|
@@ -110,7 +107,6 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
|
|
|
110
107
|
"""Initialization.
|
|
111
108
|
|
|
112
109
|
Args:
|
|
113
|
-
----
|
|
114
110
|
session: ITkDB session
|
|
115
111
|
|
|
116
112
|
"""
|
|
@@ -14,7 +14,7 @@ from gi.repository import Gtk, Gio
|
|
|
14
14
|
|
|
15
15
|
try:
|
|
16
16
|
import itkdb_gtk
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
except ImportError:
|
|
19
19
|
from pathlib import Path
|
|
20
20
|
cwd = Path(sys.argv[0]).parent.parent
|
|
@@ -44,11 +44,9 @@ def get_type(child):
|
|
|
44
44
|
"""Return object type
|
|
45
45
|
|
|
46
46
|
Args:
|
|
47
|
-
-----
|
|
48
47
|
child (): object
|
|
49
48
|
|
|
50
|
-
Returns
|
|
51
|
-
-------
|
|
49
|
+
Returns:
|
|
52
50
|
str: object type
|
|
53
51
|
|
|
54
52
|
"""
|
|
@@ -229,13 +227,11 @@ class AVSPanel(Gtk.Window):
|
|
|
229
227
|
"""Create the dialog for a DB test and add it to the notebook.
|
|
230
228
|
|
|
231
229
|
Args:
|
|
232
|
-
----
|
|
233
230
|
test_json: The JSon-like dict with the values
|
|
234
231
|
test_name: The name of the test for internal indexing
|
|
235
232
|
label: The label for the Notebook
|
|
236
233
|
|
|
237
|
-
|
|
238
|
-
------
|
|
234
|
+
Returns:
|
|
239
235
|
The box containing the data.
|
|
240
236
|
|
|
241
237
|
"""
|
|
@@ -264,7 +260,6 @@ class AVSPanel(Gtk.Window):
|
|
|
264
260
|
"""Register petal core in DB.
|
|
265
261
|
|
|
266
262
|
Args:
|
|
267
|
-
----
|
|
268
263
|
SN: The petal Serial Number.
|
|
269
264
|
|
|
270
265
|
"""
|
|
@@ -610,7 +605,8 @@ class AVSPanel(Gtk.Window):
|
|
|
610
605
|
complain("Could not upload test {}".format(values["testType"]), res)
|
|
611
606
|
|
|
612
607
|
|
|
613
|
-
|
|
608
|
+
def main():
|
|
609
|
+
"""The main entry."""
|
|
614
610
|
# Parse command line options
|
|
615
611
|
parser = ArgumentParser()
|
|
616
612
|
parser.add_argument('files', nargs='*', help="Input files")
|
|
@@ -640,3 +636,6 @@ if __name__ == "__main__":
|
|
|
640
636
|
print("Bye !!")
|
|
641
637
|
dlg.die()
|
|
642
638
|
sys.exit()
|
|
639
|
+
|
|
640
|
+
if __name__ == "__main__":
|
|
641
|
+
main()
|
itkdb_gtk/UploadTest.py
CHANGED
|
@@ -48,11 +48,9 @@ def check_data(data):
|
|
|
48
48
|
"""Checks validity of JSon data.
|
|
49
49
|
|
|
50
50
|
Args:
|
|
51
|
-
----
|
|
52
51
|
data (): The json data
|
|
53
52
|
|
|
54
|
-
Returns
|
|
55
|
-
-------
|
|
53
|
+
Returns:
|
|
56
54
|
boolean: True if valid, False otherwise.
|
|
57
55
|
|
|
58
56
|
"""
|
|
@@ -84,7 +82,6 @@ class UploadTest(dbGtkUtils.ITkDBWindow):
|
|
|
84
82
|
"""Initialization.
|
|
85
83
|
|
|
86
84
|
Args:
|
|
87
|
-
----
|
|
88
85
|
session: ITkDB session
|
|
89
86
|
payload: path of test file
|
|
90
87
|
attachment: an Attachment object or list of attachments.
|
itkdb_gtk/WireBondGui.py
CHANGED
itkdb_gtk/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "0.0
|
|
1
|
+
__version__ = "0.9.0"
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
def dash_board():
|
|
@@ -25,9 +25,9 @@ def groundVITests():
|
|
|
25
25
|
main()
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
def
|
|
28
|
+
def createShipments():
|
|
29
29
|
"""Send items."""
|
|
30
|
-
from .
|
|
30
|
+
from .CreateShipments import main
|
|
31
31
|
main()
|
|
32
32
|
|
|
33
33
|
def uploadTest():
|
|
@@ -50,3 +50,8 @@ def wirebondTest():
|
|
|
50
50
|
"""Inputs data and eventually upload wirebod test."""
|
|
51
51
|
from .WireBondGui import main
|
|
52
52
|
main()
|
|
53
|
+
|
|
54
|
+
def uploadPetalInformation():
|
|
55
|
+
"""Read files from AVS nd create Petal core in PDB."""
|
|
56
|
+
from .UploadPetalInformation import main
|
|
57
|
+
main()
|
itkdb_gtk/dashBoard.py
CHANGED
|
@@ -15,7 +15,7 @@ from itkdb_gtk import dbGtkUtils
|
|
|
15
15
|
from itkdb_gtk import GetShipments
|
|
16
16
|
from itkdb_gtk import GroundVITests
|
|
17
17
|
from itkdb_gtk import ITkDBlogin
|
|
18
|
-
from itkdb_gtk import
|
|
18
|
+
from itkdb_gtk import CreateShipments
|
|
19
19
|
from itkdb_gtk import UploadTest
|
|
20
20
|
from itkdb_gtk import UploadMultipleTests
|
|
21
21
|
from itkdb_gtk import GlueWeight
|
|
@@ -135,14 +135,14 @@ class DashWindow(dbGtkUtils.ITkDBWindow):
|
|
|
135
135
|
W.connect("destroy", self.app_closed, bitn)
|
|
136
136
|
|
|
137
137
|
def create_shipment(self, *args):
|
|
138
|
-
"""Launch
|
|
138
|
+
"""Launch createShipment."""
|
|
139
139
|
bitn = DashWindow.CREATE_SHIPMNT
|
|
140
140
|
bt = 1 << bitn
|
|
141
141
|
if self.mask & bt:
|
|
142
142
|
return
|
|
143
143
|
|
|
144
144
|
self.mask |= bt
|
|
145
|
-
W =
|
|
145
|
+
W = CreateShipments.CreateShipments(self.session)
|
|
146
146
|
W.connect("destroy", self.app_closed, bitn)
|
|
147
147
|
|
|
148
148
|
def receive_shipment(self, *args):
|
itkdb_gtk/dbGtkUtils.py
CHANGED
|
@@ -108,7 +108,6 @@ def empty_container(container):
|
|
|
108
108
|
"""Remove all children from a container.
|
|
109
109
|
|
|
110
110
|
Args:
|
|
111
|
-
----
|
|
112
111
|
container: The container.
|
|
113
112
|
|
|
114
113
|
"""
|
|
@@ -121,7 +120,6 @@ def replace_in_container(container, child):
|
|
|
121
120
|
"""Replace a child from a single-child container.
|
|
122
121
|
|
|
123
122
|
Args:
|
|
124
|
-
----
|
|
125
123
|
container: the container
|
|
126
124
|
child: the new child to be added
|
|
127
125
|
|
|
@@ -138,7 +136,6 @@ def complain(main_title, second_text="", parent=None):
|
|
|
138
136
|
"""Open an error dialog.
|
|
139
137
|
|
|
140
138
|
Args:
|
|
141
|
-
----
|
|
142
139
|
main_title: Main text in window
|
|
143
140
|
second_text: Second text
|
|
144
141
|
parent: dialog parent
|
|
@@ -160,13 +157,11 @@ def ask_for_confirmation(main_title, second_text, parent=None):
|
|
|
160
157
|
"""Ask for action cofirmation.
|
|
161
158
|
|
|
162
159
|
Args:
|
|
163
|
-
----
|
|
164
160
|
main_title: Main title in the message window
|
|
165
161
|
second_text: Secondary text in the message widow
|
|
166
162
|
parent (optional): The parent window. Defaults to None.
|
|
167
163
|
|
|
168
164
|
Return:
|
|
169
|
-
------
|
|
170
165
|
OK: True if OK button clicked.
|
|
171
166
|
|
|
172
167
|
"""
|
|
@@ -254,14 +249,12 @@ def get_a_value(main_title, second_text=None, is_tv=False, parent=None):
|
|
|
254
249
|
"""Open a dialog to get a value.
|
|
255
250
|
|
|
256
251
|
Args:
|
|
257
|
-
----
|
|
258
252
|
main_title: Main title in the message window
|
|
259
253
|
is_tv: If true show a text view rathar than an entry.
|
|
260
254
|
second_text: Secondary text in the message widow
|
|
261
255
|
parent (optional): The parent window. Defaults to None.
|
|
262
256
|
|
|
263
257
|
Return:
|
|
264
|
-
------
|
|
265
258
|
value: The value in the entry
|
|
266
259
|
|
|
267
260
|
"""
|
|
@@ -299,15 +292,13 @@ def get_a_list_of_values(main_title, labels, defaults=None, second_text=None, pa
|
|
|
299
292
|
"""Get a list of values.
|
|
300
293
|
|
|
301
294
|
Args:
|
|
302
|
-
----
|
|
303
295
|
main_title: Main title for window
|
|
304
296
|
labels: List of labes to get the values. If the label ends with /v
|
|
305
297
|
then a TextView will be shown instead of a TextEntry.
|
|
306
298
|
defaults (optional): default values-
|
|
307
299
|
second_text (optional): Second title for window-. Defaults to None.
|
|
308
300
|
|
|
309
|
-
Returns
|
|
310
|
-
-------
|
|
301
|
+
Returns:
|
|
311
302
|
list with values
|
|
312
303
|
|
|
313
304
|
"""
|
|
@@ -369,7 +360,6 @@ def add_button_to_container(box, label, tooltip=None, callback=None):
|
|
|
369
360
|
"""Creates a buttons and adds to container.
|
|
370
361
|
|
|
371
362
|
Args:
|
|
372
|
-
----
|
|
373
363
|
box: The container.
|
|
374
364
|
label: The button label
|
|
375
365
|
tooltip (optional): Tooltip message. Defaults to None.
|
|
@@ -407,7 +397,7 @@ class MessagePanel(object):
|
|
|
407
397
|
Args:
|
|
408
398
|
size: size of the panel
|
|
409
399
|
|
|
410
|
-
Returns
|
|
400
|
+
Returns:
|
|
411
401
|
Gtk.TextBuffer, Gtk.Frame
|
|
412
402
|
"""
|
|
413
403
|
frame = Gtk.Frame()
|
|
@@ -453,7 +443,6 @@ class ITkDBWindow(Gtk.Window):
|
|
|
453
443
|
"""Initialization.
|
|
454
444
|
|
|
455
445
|
Args:
|
|
456
|
-
----
|
|
457
446
|
title: The title of the window.
|
|
458
447
|
session: ITkDB session.
|
|
459
448
|
show_search: tooltip for search button in header (calls to query_db).
|
|
@@ -610,7 +599,6 @@ class DictDialog(Gtk.Grid):
|
|
|
610
599
|
"""Create the Gtk.Grid.
|
|
611
600
|
|
|
612
601
|
Args:
|
|
613
|
-
----
|
|
614
602
|
values: A dict (JSon-like)
|
|
615
603
|
hidden_keys: keys tha twill not be shown.
|
|
616
604
|
|
|
@@ -730,7 +718,6 @@ class DictDialog(Gtk.Grid):
|
|
|
730
718
|
"""Show the keys and values of a dictionary (JSON).
|
|
731
719
|
|
|
732
720
|
Args:
|
|
733
|
-
----
|
|
734
721
|
values: The dictionary object
|
|
735
722
|
|
|
736
723
|
"""
|
|
@@ -764,8 +751,10 @@ class DictDialog(Gtk.Grid):
|
|
|
764
751
|
def create_scrolled_dictdialog(the_dict, hidden=("component", "testType")):
|
|
765
752
|
"""Create a DictDialog within a scrolled window.
|
|
766
753
|
|
|
767
|
-
|
|
768
|
-
|
|
754
|
+
Args:
|
|
755
|
+
the_dict: the input dictionary with values.
|
|
756
|
+
|
|
757
|
+
Returns:
|
|
769
758
|
scrolled: the scrolled window
|
|
770
759
|
gM: the DictDialog
|
|
771
760
|
|
itkdb_gtk/readAVSdata.py
CHANGED
|
@@ -37,7 +37,6 @@ def create_weight(session, SN, the_date=None, manager="", passed=True, problems=
|
|
|
37
37
|
"""Creates the dictionary for a WEIGHT test.
|
|
38
38
|
|
|
39
39
|
Args:
|
|
40
|
-
----
|
|
41
40
|
session: the DB session
|
|
42
41
|
SN: Serial Number
|
|
43
42
|
the_date: the date of the test
|
|
@@ -62,7 +61,6 @@ def create_manufacturing(session, SN, the_date=None, manager="", passed=True, pr
|
|
|
62
61
|
"""Create the dictionary or the MANUFACTURING test.
|
|
63
62
|
|
|
64
63
|
Args:
|
|
65
|
-
----
|
|
66
64
|
session: the DB session
|
|
67
65
|
SN: Serial Number
|
|
68
66
|
the_date: the date of the test
|
|
@@ -102,7 +100,6 @@ def create_delamination_test(session, SN, the_date=None, operator="", passed=Tru
|
|
|
102
100
|
"""Create the delamination test JSON.
|
|
103
101
|
|
|
104
102
|
Args:
|
|
105
|
-
----
|
|
106
103
|
session: the DB session
|
|
107
104
|
SN: Serial Number
|
|
108
105
|
the_date: the date of the test
|
|
@@ -128,7 +125,6 @@ def create_grounding_test(session, SN, the_date=None, operator="", passed=True,
|
|
|
128
125
|
"""Create grounding test.
|
|
129
126
|
|
|
130
127
|
Args:
|
|
131
|
-
----
|
|
132
128
|
session: the DB session
|
|
133
129
|
SN: Serial Number
|
|
134
130
|
the_date: the date of the test
|
|
@@ -154,7 +150,6 @@ def create_metrology_test(session, SN, the_date=None, operator="", passed=True,
|
|
|
154
150
|
"""Metrology test.
|
|
155
151
|
|
|
156
152
|
Args:
|
|
157
|
-
----
|
|
158
153
|
session: the DB session
|
|
159
154
|
SN: Serial Number
|
|
160
155
|
the_date: the date of the test
|
|
@@ -316,7 +311,6 @@ def readFATfile(session, fnam, SN=None):
|
|
|
316
311
|
"""Read data from FAT excel file.
|
|
317
312
|
|
|
318
313
|
Args:
|
|
319
|
-
----
|
|
320
314
|
session: the DB session
|
|
321
315
|
fnam: File path
|
|
322
316
|
SN: COre serial number
|
|
@@ -463,7 +457,6 @@ def readProductionSheet(session, fnam, SN):
|
|
|
463
457
|
"""Read data fro AVS PS.
|
|
464
458
|
|
|
465
459
|
Args:
|
|
466
|
-
----
|
|
467
460
|
session: the DB session
|
|
468
461
|
fnam: path of input file
|
|
469
462
|
SN: The serial number
|
itkdb_gtk/readGoogleSheet.py
CHANGED
itkdb_gtk/untrash_component.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: A collection of Gtk based GUI to access ITkDB.
|
|
5
5
|
Author-email: Carlos Lacasta <carlos.lacasta@cern.ch>
|
|
6
6
|
Project-URL: Homepage, https://gitlab.cern.ch/atlas-itk/sw/db/itk-pdb-gtk-gui-utils
|
|
@@ -57,7 +57,7 @@ Find all shipments to be received at a given site and list them. It handles a
|
|
|
57
57
|
barcode reader that helps identifying the items actually received for the
|
|
58
58
|
reception. It will finally make the DB aware of the items receptioned.
|
|
59
59
|
|
|
60
|
-
##
|
|
60
|
+
## CreateShipments.py
|
|
61
61
|
Create a new shipment. Allows to add items with the QR reader as well as from a
|
|
62
62
|
GUI dialog. One can add comments and attachments to the shipment.
|
|
63
63
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
itkdb_gtk/CreateShipments.py,sha256=-XG3ayobzVW2pg0hV7cMHTyCjakQOoDTxbCC1YIU43c,13159
|
|
2
|
+
itkdb_gtk/GetShipments.py,sha256=T70xpg1NiZOcPuQbdvSEwht4eLFMmqWHFaq3Ls8NKuI,18739
|
|
3
|
+
itkdb_gtk/GlueWeight.py,sha256=fp5J54frYdZzje0LJ9y1Q22Dscvg5cXBAXbL8CJMUiQ,12247
|
|
4
|
+
itkdb_gtk/GroundVITests.py,sha256=jeIGUHJu3Lul5YcaOOYP_7qwwM738ugpY-Bu_RUfGy0,9214
|
|
5
|
+
itkdb_gtk/ITkDB.desktop,sha256=v_K4mHsDxb912J1XGo6mOlbW2TkHvYNGrKmiOnsBQqM,172
|
|
6
|
+
itkdb_gtk/ITkDB.svg,sha256=Ry702zrUkxvG61SqThbUNfXySyiLMqalwYpcM-b_KWo,24242
|
|
7
|
+
itkdb_gtk/ITkDBlogin.py,sha256=ciBGBweCKHv31wcEP5DVfdioq_6BcdIs4FPUC0JNF5k,9916
|
|
8
|
+
itkdb_gtk/ITkDButils.py,sha256=pvLmfhh6g7ulpEfWVbboYBjD4S3qUXSZongG3SWlqAY,14862
|
|
9
|
+
itkdb_gtk/ShowAttachments.py,sha256=Cbvb_N4AxVv5nb8vQLZ4arYRy_06W3Lw9pScOLVo8W4,8407
|
|
10
|
+
itkdb_gtk/ShowComments.py,sha256=e5ywWuK-reFt5bCJ9gqyQdImN8Fue_ch4eWnfjXH3lw,3154
|
|
11
|
+
itkdb_gtk/ShowDefects.py,sha256=tVT5wNe9XI80wnWwUXnKQLHIibgtC8d6C4B4tCDrfJ4,3533
|
|
12
|
+
itkdb_gtk/UploadModuleIV.py,sha256=EhUaLze9DLFFKSPclXgCPhxOAL6Cezz3N4xvpnZrc4U,28135
|
|
13
|
+
itkdb_gtk/UploadMultipleTests.py,sha256=qvIJzSD7yrIatkOO2_0YrPnL6nPedXtaVoK28H0F18w,22120
|
|
14
|
+
itkdb_gtk/UploadPetalInformation.py,sha256=D2Hq-Kesz9vU3fMi7yDuHNUONMRbpVCyxJ1s_81bI-o,22194
|
|
15
|
+
itkdb_gtk/UploadTest.py,sha256=wVLZ86fo5Kw1sT7vWjttIVkCNFvPiUcgKhfG3zXw7-Y,16511
|
|
16
|
+
itkdb_gtk/WireBondGui.py,sha256=RM5TrQ3Xvcu18W8DuQJ8oBavau0O7XZOQqExhnoHWCE,25761
|
|
17
|
+
itkdb_gtk/__init__.py,sha256=_oyuRq0I6WwU15w1bGm7FppXd4fGM5V9H33jemzTbkw,1106
|
|
18
|
+
itkdb_gtk/dashBoard.py,sha256=Ahkfkh8fQnAE8gEv24jElDWWJuMqq5-r-ppynbMPm08,6321
|
|
19
|
+
itkdb_gtk/dbGtkUtils.py,sha256=vzmYjrmmoRAerELpyWG8XEpjZ5y3L4Oy_or9x70imnQ,25071
|
|
20
|
+
itkdb_gtk/readAVSdata.py,sha256=XJmLpemvOj1B81Jzr-WHZJw4UQphb8LwmZXD82qTWu4,19394
|
|
21
|
+
itkdb_gtk/readGoogleSheet.py,sha256=Lzm_oPWwDqZZzKoBUgsp277F9-wCfr_BA0X4VD2Eolo,2673
|
|
22
|
+
itkdb_gtk/untrash_component.py,sha256=VrN46-f-kF7voOxtoh7OL-bZSWAaIFb7-Xbx6_WT7K8,757
|
|
23
|
+
itkdb_gtk-0.9.0.dist-info/METADATA,sha256=syyqetk9udFKkFEeP5SRb5lGd8Hu8aUwkd8N1KM2h_A,3149
|
|
24
|
+
itkdb_gtk-0.9.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
25
|
+
itkdb_gtk-0.9.0.dist-info/entry_points.txt,sha256=wrcKQkzsIeLscwbSkO7ua2unUWeCnk4z6lu-OhBpMCo,433
|
|
26
|
+
itkdb_gtk-0.9.0.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
|
|
27
|
+
itkdb_gtk-0.9.0.dist-info/RECORD,,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
[gui_scripts]
|
|
2
|
+
createShipments = itkdb_gtk:createShipments
|
|
2
3
|
getShipments = itkdb_gtk:getShipments
|
|
3
4
|
glueWeight = itkdb_gtk:glueWeight
|
|
4
5
|
groundVITests = itkdb_gtk:groundVITests
|
|
6
|
+
iploadPetalInformation = itkdb_gtk:uploadPetalInformation
|
|
5
7
|
itkdb_dashBoard = itkdb_gtk:dash_board
|
|
6
|
-
sendShipments = itkdb_gtk:sendShipments
|
|
7
8
|
uploadModuleIV = itkdb_gtk:uploadModuleIV
|
|
8
9
|
uploadMultipleTests = itkdb_gtk:uploadMultipleTests
|
|
9
10
|
uploadTest = itkdb_gtk:uploadTest
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
itkdb_gtk/GetShipments.py,sha256=H9QIr-cmpYK7KK7BfK-COWQEqWBuXD9Xmq_Er2ZF5gs,18752
|
|
2
|
-
itkdb_gtk/GlueWeight.py,sha256=es2YrqeCj7o3_AITQP1DYDAsgSgeqNSlhJ9H_rQPYG0,12350
|
|
3
|
-
itkdb_gtk/GroundVITests.py,sha256=qXLCHrRbuemUcKOldpvsW9zpObyr2Hn9eQARFRPNU7M,9227
|
|
4
|
-
itkdb_gtk/ITkDB.desktop,sha256=v_K4mHsDxb912J1XGo6mOlbW2TkHvYNGrKmiOnsBQqM,172
|
|
5
|
-
itkdb_gtk/ITkDB.svg,sha256=Rb1DyhhGj504-h3vi-H6BF_Gm-OUciIXWOmzZbjGns4,23991
|
|
6
|
-
itkdb_gtk/ITkDBlogin.py,sha256=lYuTz8FghvqUYRpua9lGaE_dJk_AOmzZhBk2VZH5bKc,9929
|
|
7
|
-
itkdb_gtk/ITkDButils.py,sha256=I88VFnJMdcdWpu2c3VKoGlhMzh3LkfWuZxkSCoXaJh0,14943
|
|
8
|
-
itkdb_gtk/SendShipments.py,sha256=f2I94sKNX_5u9I0TV84dJ31ndPuHLDZI00ekik5Fd7g,13168
|
|
9
|
-
itkdb_gtk/ShowAttachments.py,sha256=Cbvb_N4AxVv5nb8vQLZ4arYRy_06W3Lw9pScOLVo8W4,8407
|
|
10
|
-
itkdb_gtk/ShowComments.py,sha256=e5ywWuK-reFt5bCJ9gqyQdImN8Fue_ch4eWnfjXH3lw,3154
|
|
11
|
-
itkdb_gtk/ShowDefects.py,sha256=tVT5wNe9XI80wnWwUXnKQLHIibgtC8d6C4B4tCDrfJ4,3533
|
|
12
|
-
itkdb_gtk/UploadModuleIV.py,sha256=JSvfQSjMxCEy_9KtcydIjpSSCBJ6xJbCwo24-xszabk,28134
|
|
13
|
-
itkdb_gtk/UploadMultipleTests.py,sha256=qTJGMVZ6njnFp0T8VLDWDY9Wd1cMNZR0K7w2WQocwvs,22160
|
|
14
|
-
itkdb_gtk/UploadPetalInformation.py,sha256=IsZGa_i6jW8lEUnJOhPFmq-GCemLg_nhlHuQlJQMbjc,22210
|
|
15
|
-
itkdb_gtk/UploadTest.py,sha256=yVR_KmdJmN8Y4Bv27u0gqZU2UpKv7OysvWbnQc1lr2E,16544
|
|
16
|
-
itkdb_gtk/WireBondGui.py,sha256=v9oWHIBCU2tbnje2T_3fystPNlks366Dk269pmX9dds,25747
|
|
17
|
-
itkdb_gtk/__init__.py,sha256=9KRYW3cnCzS5C7AE-yQJgNhph2bGnCdcgcX0RcRGyQU,957
|
|
18
|
-
itkdb_gtk/dashBoard.py,sha256=Koc9KfJrrT1ETHNNHmBVb6IYrEJHfkuvYQm9BG6cppc,6313
|
|
19
|
-
itkdb_gtk/dbGtkUtils.py,sha256=yfgXopSYPcfWZI6CQm8S9eUPsVch72BnS009V1QV2_U,25144
|
|
20
|
-
itkdb_gtk/readAVSdata.py,sha256=SvHWFoqvlrEDGKeVaQEPGxsjcNY21KItMSVuWE5q05E,19457
|
|
21
|
-
itkdb_gtk/readGoogleSheet.py,sha256=UCSfFCQncc0pWxqfCKTaa0K4HkQmwOI07eErepOMlGU,2682
|
|
22
|
-
itkdb_gtk/untrash_component.py,sha256=fZWanuPww1RLJ-Fduso4EqfLlcBsd5ryJymr1xJZEUM,756
|
|
23
|
-
itkdb_gtk-0.0.18.dist-info/METADATA,sha256=ucx_fYuU-wK_qGij2YDnS6V3KOwrPh15qbji7Pa6VxM,3148
|
|
24
|
-
itkdb_gtk-0.0.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
25
|
-
itkdb_gtk-0.0.18.dist-info/entry_points.txt,sha256=FuSmtQZK5jEzNomHiJqdFZAJZoRueejwoWMg53aZSu0,371
|
|
26
|
-
itkdb_gtk-0.0.18.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
|
|
27
|
-
itkdb_gtk-0.0.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|