itkdb-gtk 0.10.9.dev1__tar.gz → 0.10.9.dev2__tar.gz
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-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/PKG-INFO +1 -1
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/GetShipments.py +28 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/__init__.py +1 -1
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk.egg-info/PKG-INFO +1 -1
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/pyproject.toml +1 -1
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/README.md +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/CreateShipments.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/GlueWeight.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/ITkDB.desktop +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/ITkDB.svg +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/ITkDBlogin.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/ITkDButils.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/PanelVisualInspection.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/PetalReceptionTests.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/SensorUtils.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/ShowAttachments.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/ShowComments.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/ShowDefects.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/UploadModuleIV.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/UploadMultipleTests.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/UploadPetalInformation.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/UploadTest.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/WireBondGui.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/dashBoard.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/dbGtkUtils.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/readAVSdata.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/readGoogleSheet.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk/untrash_component.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk.egg-info/SOURCES.txt +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk.egg-info/entry_points.txt +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk.egg-info/requires.txt +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/itkdb_gtk.egg-info/top_level.txt +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/setup.cfg +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/test/testAnimated.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/test/testComponent.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/test/test_attachment.py +0 -0
- {itkdb_gtk-0.10.9.dev1 → itkdb_gtk-0.10.9.dev2}/test/test_holes.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.10.9.
|
|
3
|
+
Version: 0.10.9.dev2
|
|
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
|
|
@@ -22,6 +22,27 @@ from gi.repository import Gtk, Gio, GLib
|
|
|
22
22
|
gtk_runs, gtk_args = Gtk.init_check()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
def find_vtrx(client, SN):
|
|
26
|
+
"""Searches VTRx."""
|
|
27
|
+
payload = {
|
|
28
|
+
"filterMap": {
|
|
29
|
+
"project": "CE",
|
|
30
|
+
"componentType": ["VTRX"],
|
|
31
|
+
"propertyFilter": [{"code": "PACKAGE_SN", "operator": "=", "value": SN}],
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
out = client.get("listComponentsByProperty", json=payload)
|
|
35
|
+
vtrx = None
|
|
36
|
+
int nitem = 0
|
|
37
|
+
for item in out:
|
|
38
|
+
vtrx = item["serialNumber"]
|
|
39
|
+
nitem += 1
|
|
40
|
+
|
|
41
|
+
if nitem > 1:
|
|
42
|
+
raise ValueError("Too many VTRx with same device SN.")
|
|
43
|
+
|
|
44
|
+
return vtrx
|
|
45
|
+
|
|
25
46
|
class ReceiveShipments(dbGtkUtils.ITkDBWindow):
|
|
26
47
|
"""Find shipments related to given recipient."""
|
|
27
48
|
|
|
@@ -159,6 +180,13 @@ class ReceiveShipments(dbGtkUtils.ITkDBWindow):
|
|
|
159
180
|
txt = dbGtkUtils.scanner_get_line(reader)
|
|
160
181
|
self.write_message("{}\n".format(txt))
|
|
161
182
|
|
|
183
|
+
if txt.find("J-SD") == 0:
|
|
184
|
+
try:
|
|
185
|
+
txt = find_vtrx(self.session, txt)
|
|
186
|
+
except ValueError as e:
|
|
187
|
+
self.write_message("Error: {}".format(e))
|
|
188
|
+
return
|
|
189
|
+
|
|
162
190
|
# search code in the list
|
|
163
191
|
if self.store:
|
|
164
192
|
iter = self.store.get_iter_first()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.10.9.
|
|
3
|
+
Version: 0.10.9.dev2
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|