itkdb-gtk 0.10.5__tar.gz → 0.10.7__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.

Files changed (37) hide show
  1. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/PKG-INFO +1 -1
  2. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/CreateShipments.py +1 -1
  3. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/GetShipments.py +1 -1
  4. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/GlueWeight.py +1 -1
  5. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDButils.py +1 -1
  6. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/PetalReceptionTests.py +27 -23
  7. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/ShowAttachments.py +1 -1
  8. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/ShowComments.py +1 -1
  9. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/ShowDefects.py +1 -1
  10. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadMultipleTests.py +1 -1
  11. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadPetalInformation.py +1 -1
  12. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadTest.py +1 -1
  13. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/__init__.py +1 -1
  14. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/dbGtkUtils.py +5 -2
  15. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/readAVSdata.py +1 -1
  16. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/PKG-INFO +1 -1
  17. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/pyproject.toml +1 -1
  18. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/test/testComponent.py +1 -1
  19. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/README.md +0 -0
  20. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDB.desktop +0 -0
  21. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDB.svg +0 -0
  22. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDBlogin.py +0 -0
  23. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/PanelVisualInspection.py +0 -0
  24. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/SensorUtils.py +0 -0
  25. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadModuleIV.py +0 -0
  26. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/WireBondGui.py +0 -0
  27. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/dashBoard.py +0 -0
  28. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/readGoogleSheet.py +0 -0
  29. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk/untrash_component.py +0 -0
  30. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/SOURCES.txt +0 -0
  31. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
  32. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/entry_points.txt +0 -0
  33. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/requires.txt +0 -0
  34. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/top_level.txt +0 -0
  35. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/setup.cfg +0 -0
  36. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/test/testAnimated.py +0 -0
  37. {itkdb_gtk-0.10.5 → itkdb_gtk-0.10.7}/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.5
3
+ Version: 0.10.7
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
@@ -12,7 +12,7 @@ try:
12
12
 
13
13
  except ImportError:
14
14
  from pathlib import Path
15
- cwd = Path(sys.argv[0]).parent.parent
15
+ cwd = Path(__file__).parent.parent
16
16
  sys.path.append(cwd.as_posix())
17
17
 
18
18
  from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils
@@ -8,7 +8,7 @@ try:
8
8
 
9
9
  except ImportError:
10
10
  from pathlib import Path
11
- cwd = Path(sys.argv[0]).parent.parent
11
+ cwd = Path(__file__).parent.parent
12
12
  sys.path.append(cwd.as_posix())
13
13
 
14
14
  from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils
@@ -11,7 +11,7 @@ try:
11
11
 
12
12
  except ImportError:
13
13
  from pathlib import Path
14
- cwd = Path(sys.argv[0]).parent.parent
14
+ cwd = Path(__file__).parent.parent
15
15
  sys.path.append(cwd.as_posix())
16
16
 
17
17
  from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils
@@ -515,7 +515,7 @@ def get_test_skeleton(session, component, test_code, userdef={}, uservalues={}):
515
515
  if isinstance(val, dict):
516
516
  continue
517
517
 
518
- val = userdef[key]
518
+ skltn[key] = userdef[key]
519
519
 
520
520
  def get_default(vin, default=None):
521
521
  # print(json.dumps(vin, indent=1))
@@ -63,10 +63,14 @@ class PetalReceptionTests(dbGtkUtils.ITkDBWindow):
63
63
  lbl.set_xalign(0)
64
64
  grid.attach(lbl, 0, 0, 1, 1)
65
65
 
66
- self.SN = Gtk.Entry()
67
- self.SN.connect("focus-in-event", self.on_sn_enter)
68
- self.SN.connect("focus-out-event", self.on_sn_leave)
69
- grid.attach(self.SN, 1, 0, 1, 1)
66
+
67
+ self.SN = itkdb_gtk.dbGtkUtils.TextEntry()
68
+ self.SN.connect("text-changed", self.on_SN_changed)
69
+
70
+ #self.SN = Gtk.Entry()
71
+ #self.SN.connect("focus-in-event", self.on_sn_enter)
72
+ #self.SN.connect("focus-out-event", self.on_sn_leave)
73
+ grid.attach(self.SN.entry, 1, 0, 1, 1)
70
74
 
71
75
  self.alias = Gtk.Label(label="")
72
76
  grid.attach(self.alias, 2, 0, 1, 1)
@@ -109,28 +113,28 @@ class PetalReceptionTests(dbGtkUtils.ITkDBWindow):
109
113
 
110
114
  self.show_all()
111
115
 
112
- def on_sn_enter(self, entry, *args):
113
- """Enter in SN entry."""
114
- self._sn = entry.get_text()
116
+ def on_SN_changed(self, entry, value):
117
+ """New SN given. Ask in PDB,"""
118
+ if len(value) <= 0:
119
+ return None
120
+
121
+ self.query_db()
122
+ current_location = self.dbObject["currentLocation"]["code"]
123
+ dbGtkUtils.set_combo_iter(self.inst_cmb, current_location, 0)
115
124
 
116
- def on_sn_leave(self, entry, *args):
117
- """Leave SN entry."""
118
- sn = entry.get_text()
119
- if sn != self._sn:
120
- self.query_db()
121
- current_location = self.dbObject["currentLocation"]["code"]
122
- dbGtkUtils.set_combo_iter(self.inst_cmb, current_location, 0)
125
+ stg = self.dbObject["currentStage"]["name"]
126
+ self.stage.set_text(stg)
123
127
 
124
- stg = self.dbObject["currentStage"]["name"]
125
- self.stage.set_text(stg)
128
+ entry.set_text(self.dbObject["serialNumber"])
126
129
 
127
- alias = self.dbObject["alternativeIdentifier"]
128
- self.alias.set_text(alias)
130
+ alias = self.dbObject["alternativeIdentifier"]
131
+ self.alias.set_text(alias)
129
132
 
130
- npages = self.notebook.get_n_pages()
131
- for i in range(npages):
132
- page = self.notebook.get_nth_page(i)
133
- page.dict_dialog.factory_reset()
133
+ npages = self.notebook.get_n_pages()
134
+ for i in range(npages):
135
+ page = self.notebook.get_nth_page(i)
136
+ page.dict_dialog.factory_reset()
137
+
134
138
 
135
139
  def create_test_box(self, label, test_name, institute="IFIC"):
136
140
  """Create and add to notebook a test dialog.
@@ -178,7 +182,7 @@ class PetalReceptionTests(dbGtkUtils.ITkDBWindow):
178
182
  self.dbObject = None
179
183
  return
180
184
 
181
- print(json.dumps(self.dbObject, indent=3))
185
+ #print(json.dumps(self.dbObject, indent=3))
182
186
 
183
187
  def add_defect(self, btn):
184
188
  """Add a new defect."""
@@ -6,7 +6,7 @@ try:
6
6
 
7
7
  except ImportError:
8
8
  from pathlib import Path
9
- cwd = Path(sys.argv[0]).parent.parent
9
+ cwd = Path(__file__).parent.parent
10
10
  sys.path.append(cwd.as_posix())
11
11
 
12
12
  from itkdb_gtk import dbGtkUtils, ITkDButils
@@ -7,7 +7,7 @@ try:
7
7
  except ImportError:
8
8
  import sys
9
9
  from pathlib import Path
10
- cwd = Path(sys.argv[0]).parent.parent
10
+ cwd = Path(__file__).parent.parent
11
11
  sys.path.append(cwd.as_posix())
12
12
 
13
13
  from itkdb_gtk import dbGtkUtils
@@ -5,7 +5,7 @@ try:
5
5
  except ImportError:
6
6
  import sys
7
7
  from pathlib import Path
8
- cwd = Path(sys.argv[0]).parent.parent
8
+ cwd = Path(__file__).parent.parent
9
9
  sys.path.append(cwd.as_posix())
10
10
 
11
11
  from itkdb_gtk import dbGtkUtils
@@ -12,7 +12,7 @@ try:
12
12
 
13
13
  except ImportError:
14
14
  from pathlib import Path
15
- cwd = Path(sys.argv[0]).parent.parent
15
+ cwd = Path(__file__).parent.parent
16
16
  sys.path.append(cwd.as_posix())
17
17
 
18
18
  from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils
@@ -17,7 +17,7 @@ try:
17
17
 
18
18
  except ImportError:
19
19
  from pathlib import Path
20
- cwd = Path(sys.argv[0]).parent.parent
20
+ cwd = Path(__file__).parent.parent
21
21
  sys.path.append(cwd.as_posix())
22
22
 
23
23
  from itkdb_gtk import readAVSdata, ITkDBlogin, ITkDButils, dbGtkUtils
@@ -10,7 +10,7 @@ try:
10
10
 
11
11
  except ImportError:
12
12
  from pathlib import Path
13
- cwd = Path(sys.argv[0]).parent.parent
13
+ cwd = Path(__file__).parent.parent
14
14
  sys.path.append(cwd.as_posix())
15
15
 
16
16
  from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils
@@ -1,6 +1,6 @@
1
1
  """ itkdb-gtk python module
2
2
  """
3
- __version__ = "0.10.5"
3
+ __version__ = "0.10.7"
4
4
 
5
5
 
6
6
  def dash_board():
@@ -723,8 +723,11 @@ class DictDialog(Gtk.Grid):
723
723
  self.containers[name].set_text(out)
724
724
 
725
725
  else:
726
- tp = type(itm[last_key])
727
- itm[last_key] = tp(txt)
726
+ if itm[last_key] is None:
727
+ itm[last_key] = txt
728
+ else:
729
+ tp = type(itm[last_key])
730
+ itm[last_key] = tp(txt)
728
731
 
729
732
  def show_item(self, value, name=None):
730
733
  """Handle a single item."""
@@ -14,7 +14,7 @@ try:
14
14
  import itkdb_gtk
15
15
 
16
16
  except ImportError:
17
- cwd = Path(sys.argv[0]).parent.parent
17
+ cwd = Path(__file__).parent.parent
18
18
  sys.path.append(cwd.as_posix())
19
19
 
20
20
  from itkdb_gtk import ITkDBlogin, ITkDButils
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itkdb_gtk
3
- Version: 0.10.5
3
+ Version: 0.10.7
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itkdb_gtk"
7
- version = "0.10.5"
7
+ version = "0.10.7"
8
8
  authors = [
9
9
  { name="Carlos Lacasta", email="carlos.lacasta@cern.ch" },
10
10
  ]
@@ -5,7 +5,7 @@ try:
5
5
 
6
6
  except ImportError:
7
7
  from pathlib import Path
8
- cwd = Path(sys.argv[0]).parent.parent
8
+ cwd = Path(__file__).parent.parent
9
9
  sys.path.append(cwd.as_posix())
10
10
 
11
11
  from itkdb_gtk import ITkDBlogin, ITkDButils
File without changes
File without changes