itkdb-gtk 0.14.2__tar.gz → 0.14.4__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 (39) hide show
  1. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/PKG-INFO +2 -2
  2. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/ITkDButils.py +6 -1
  3. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/UploadMultipleTests.py +26 -7
  4. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/VisualInspection.py +2 -2
  5. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/__init__.py +1 -1
  6. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk.egg-info/PKG-INFO +2 -2
  7. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/pyproject.toml +1 -1
  8. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/README.md +0 -0
  9. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/CreateShipments.py +0 -0
  10. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/GetShipments.py +0 -0
  11. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/GlueWeight.py +0 -0
  12. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/ITkDB.desktop +0 -0
  13. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/ITkDB.svg +0 -0
  14. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/ITkDBlogin.py +0 -0
  15. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/PanelVisualInspection.py +0 -0
  16. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/SensorUtils.py +0 -0
  17. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/ShowAttachments.py +0 -0
  18. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/ShowComments.py +0 -0
  19. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/ShowDefects.py +0 -0
  20. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/UploadModuleIV.py +0 -0
  21. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/UploadTest.py +0 -0
  22. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/WireBondGui.py +0 -0
  23. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/dashBoard.py +0 -0
  24. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/dbGtkUtils.py +0 -0
  25. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/readGoogleSheet.py +0 -0
  26. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk/untrash_component.py +0 -0
  27. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk.egg-info/SOURCES.txt +0 -0
  28. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
  29. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk.egg-info/entry_points.txt +0 -0
  30. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk.egg-info/requires.txt +0 -0
  31. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/itkdb_gtk.egg-info/top_level.txt +0 -0
  32. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/setup.cfg +0 -0
  33. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/test/testAnimated.py +0 -0
  34. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/test/testBatch.py +0 -0
  35. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/test/testComponent.py +0 -0
  36. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/test/testRange.py +0 -0
  37. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/test/testThread.py +0 -0
  38. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/test/test_attachment.py +0 -0
  39. {itkdb_gtk-0.14.2 → itkdb_gtk-0.14.4}/test/test_holes.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: itkdb_gtk
3
- Version: 0.14.2
3
+ Version: 0.14.4
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
@@ -108,7 +108,12 @@ def get_petal_core_batches(session):
108
108
 
109
109
  def set_petal_core_batch(session, petal_core):
110
110
  """Set the batch of the petal core."""
111
- if petal_core["type"]["code"] != "CORE_AVS":
111
+ if isinstance(petal_core["type"], str):
112
+ tp = petal_core["type"]
113
+ else:
114
+ tp = petal_core["type"]["code"]
115
+
116
+ if tp != "CORE_AVS":
112
117
  return
113
118
 
114
119
  batch_list = get_petal_core_batches(session)
@@ -131,6 +131,7 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
131
131
  self.tests = []
132
132
  self.data = None
133
133
  self.tree = None
134
+ self.is_retroactive = False
134
135
  self.def_color = None
135
136
 
136
137
  self.init_window()
@@ -177,6 +178,11 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
177
178
  btn.connect("clicked", self.on_select_folder)
178
179
  grid.attach(btn, 2, 0, 1, 1)
179
180
 
181
+ # toggle = Gtk.ToggleButton("RetroActive")
182
+ # toggle.set_tooltip_text("Toggle to make all uploads retroactive.")
183
+ # toggle.connect("toggled", self.on_toggle_retroactive)
184
+ # grid.attach(toggle, 3, 0, 1, 1)
185
+
180
186
  # Paned object
181
187
  paned = Gtk.Paned(orientation=Gtk.Orientation.VERTICAL)
182
188
  paned.set_size_request(-1, 200)
@@ -317,6 +323,11 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
317
323
 
318
324
  menu.popup_at_pointer(event)
319
325
 
326
+ def on_toggle_retroactive(self, toggle, *args):
327
+ """Called when retroactive button is toggled."""
328
+ self.is_retroactive = toggle.get_active()
329
+ print("Is retroactive", self.is_retroactive)
330
+
320
331
  def on_show_json(self, item, data):
321
332
  """Test JSon."""
322
333
  model, lv_iter, val = data
@@ -413,7 +424,7 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
413
424
  SN = val[TestList.SN]
414
425
  combo, _ = self.get_component_stages(SN)
415
426
 
416
- dlg = Gtk.Dialog(title="Add Attachment")
427
+ dlg = Gtk.Dialog(title="Set object stage")
417
428
 
418
429
  dlg.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
419
430
  Gtk.STOCK_OK, Gtk.ResponseType.OK)
@@ -423,6 +434,9 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
423
434
 
424
435
  box.pack_start(Gtk.Label(label="Select Stage"), False, True, 0)
425
436
  box.pack_start(combo, False, True, 0)
437
+ toggle = Gtk.ToggleButton("Retroactive")
438
+ box.pack_start(toggle, False, True, 0)
439
+
426
440
  dlg.show_all()
427
441
 
428
442
  rc = dlg.run()
@@ -430,13 +444,18 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
430
444
  new_stage = combo.get_active_text()
431
445
  model[lv_iter][TestList.Stage] = new_stage
432
446
  data = model[lv_iter][TestList.Json]
433
- changed = (new_stage != model[lv_iter][TestList.currentStage])
434
- data["isRetroactive"] = changed
435
- if changed:
447
+ if toggle.get_active():
448
+ data["isRetroactive"] = True
436
449
  data["stage"] = new_stage
450
+
437
451
  else:
438
- if "stage" in data:
439
- del data["stage"]
452
+ changed = (new_stage != model[lv_iter][TestList.currentStage])
453
+ data["isRetroactive"] = changed
454
+ if changed:
455
+ data["stage"] = new_stage
456
+ else:
457
+ if "stage" in data:
458
+ del data["stage"]
440
459
 
441
460
  model[lv_iter][TestList.Json] = data
442
461
 
@@ -689,7 +708,7 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
689
708
 
690
709
 
691
710
  def main():
692
- """Main entry."""
711
+ """Main entry."""
693
712
  HELP_LINK="https://itkdb-gtk.docs.cern.ch/uploadMultipleTests.html"
694
713
  # DB login
695
714
  dlg = ITkDBlogin.ITkDBlogin()
@@ -248,8 +248,8 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
248
248
 
249
249
  else:
250
250
  if self.reception.get_active():
251
- test_type = "VISUAL_INSPECTION_RECEPTION"
252
-
251
+ #test_type = "VISUAL_INSPECTION_RECEPTION"
252
+ test_type = "VISUAL_INSPECTION"
253
253
 
254
254
  self.data = ITkDButils.get_test_skeleton(self.session,
255
255
  self.obj_type,
@@ -1,6 +1,6 @@
1
1
  """ itkdb-gtk python module
2
2
  """
3
- __version__ = "0.14.2"
3
+ __version__ = "0.14.4"
4
4
 
5
5
 
6
6
  def dash_board():
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: itkdb_gtk
3
- Version: 0.14.2
3
+ Version: 0.14.4
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.14.2"
7
+ version = "0.14.4"
8
8
  authors = [
9
9
  { name="Carlos Lacasta", email="carlos.lacasta@cern.ch" },
10
10
  ]
File without changes
File without changes
File without changes
File without changes