itkdb-gtk 0.0.16.dev4__py3-none-any.whl → 0.0.16.dev5__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.

@@ -14,6 +14,7 @@ import os
14
14
  import json
15
15
  import warnings
16
16
  from pathlib import Path
17
+ import shutil
17
18
 
18
19
  import gi
19
20
  import tempfile
@@ -537,6 +538,23 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
537
538
  js_out.write(json.dumps(test, indent=3, cls=dbGtkUtils.MyEncoder))
538
539
  js_out.close()
539
540
 
541
+ if dbGtkUtils.ask_for_confirmation("Save Data File locally?", "Saves attached file also locally."):
542
+ fc = Gtk.FileChooserDialog(title="Save data file", action=Gtk.FileChooserAction.SAVE)
543
+ fc.add_buttons(
544
+ Gtk.STOCK_CANCEL,
545
+ Gtk.ResponseType.CANCEL,
546
+ Gtk.STOCK_OPEN,
547
+ Gtk.ResponseType.OK,
548
+ )
549
+
550
+ fc.set_current_name("{}.dat".format(fnam))
551
+ rc = fc.run()
552
+ if rc == Gtk.ResponseType.OK:
553
+ shutil.copyfile(data_out.name, fc.get_filename())
554
+
555
+ fc.hide()
556
+ fc.destroy()
557
+
540
558
  attachment = ITkDButils.Attachment(data_out.name, "resultsFile", fnam)
541
559
  uploadW = UploadTest.UploadTest(self.session, js_out.name, attachment)
542
560
  uploadW.connect("destroy", remove_files, [data_out.name, js_out.name])
@@ -800,7 +818,6 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
800
818
  return metadata
801
819
 
802
820
 
803
-
804
821
  def main():
805
822
  """Main entryy."""
806
823
  import sys
@@ -832,4 +849,4 @@ def main():
832
849
  sys.exit()
833
850
 
834
851
  if __name__ == "__main__":
835
- main()
852
+ main()
itkdb_gtk/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.0.16.dev4"
1
+ __version__ = "0.0.16.dev5"
2
2
 
3
3
 
4
4
  def dash_board():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itkdb_gtk
3
- Version: 0.0.16.dev4
3
+ Version: 0.0.16.dev5
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
@@ -9,18 +9,18 @@ itkdb_gtk/SendShipments.py,sha256=yaKQ30fMG7bt3Zk7Rkgmla04nqfboA8zg3a-rleG9-g,13
9
9
  itkdb_gtk/ShowAttachments.py,sha256=VKnmdpfyeFB5POQpEkhZXe_pm79O7CAHPT1opIYC9dM,8317
10
10
  itkdb_gtk/ShowComments.py,sha256=Poyx3bljWEMwhB2FDvBVMSRPcqv9aowlDtbbcs8JgYw,2989
11
11
  itkdb_gtk/ShowDefects.py,sha256=hnXZKfGshoTBJindbjrNgO6kKpVXwKO8Cu6Txn4cCXE,3329
12
- itkdb_gtk/UploadModuleIV.py,sha256=Uq2TroiWLUbMRmg-2HoWd8hr0mL4PX0I4LUMIy-MaMY,27347
12
+ itkdb_gtk/UploadModuleIV.py,sha256=BksJ2Aduvb1SHVz8VSP7d7P7O1qxdaI31CQoscwidGQ,27992
13
13
  itkdb_gtk/UploadMultipleTests.py,sha256=c0g6II0Ltoimf7uVXGvN0ZKW7y87v-h3E5faLKKMyiA,19892
14
14
  itkdb_gtk/UploadPetalInformation.py,sha256=4d4eP6-iDI0Vygry4h7vgHbb4L3sFLGkVeCEnth7tjg,22253
15
15
  itkdb_gtk/UploadTest.py,sha256=xqlWvQRWiFuuUPJSvOycqn1OUYwWg_VMMMNgTDM6H_U,13120
16
- itkdb_gtk/__init__.py,sha256=R8n5bp1ylcEGyQwMTBUJ2Xrp4woXtcBSTsr29k85pYg,838
16
+ itkdb_gtk/__init__.py,sha256=XqrxLGC8QRAk4GFe074ALiYl0aGLMqeHLDZ6TqZXuWo,838
17
17
  itkdb_gtk/dashBoard.py,sha256=7QqkpAsJ4sBolWDGyT67c1gwaht4-hWdTiIGJI870-4,5301
18
18
  itkdb_gtk/dbGtkUtils.py,sha256=w9zj8ky2jOKtVsm8p9mhbox6_zzBTItcFQJI1RBVAgo,21750
19
19
  itkdb_gtk/readAVSdata.py,sha256=VCoCece2tuhbd7yfaCCTXuRbGEFUUV2gCcJozQYhPRE,19379
20
20
  itkdb_gtk/readGoogleSheet.py,sha256=cQ_pVsS_nwUh0bnXl7AP4in9kQ3Q-p8BIvXvvrTRInc,2679
21
21
  itkdb_gtk/untrash_component.py,sha256=fZWanuPww1RLJ-Fduso4EqfLlcBsd5ryJymr1xJZEUM,756
22
- itkdb_gtk-0.0.16.dev4.dist-info/METADATA,sha256=wU7i5AwrU-kDDD17C9RIGH1Dp5uTTVFeP8qDe-yvK-w,3081
23
- itkdb_gtk-0.0.16.dev4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
24
- itkdb_gtk-0.0.16.dev4.dist-info/entry_points.txt,sha256=n71x6ofqLQm3n5kIwdwI_dBNFLBVbf_G6G2nxyyxwcE,333
25
- itkdb_gtk-0.0.16.dev4.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
26
- itkdb_gtk-0.0.16.dev4.dist-info/RECORD,,
22
+ itkdb_gtk-0.0.16.dev5.dist-info/METADATA,sha256=9wyBzDlIVkwCvRy_7a5uMbhKB1HRvKO2zIxZN_vDdGo,3081
23
+ itkdb_gtk-0.0.16.dev5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
24
+ itkdb_gtk-0.0.16.dev5.dist-info/entry_points.txt,sha256=n71x6ofqLQm3n5kIwdwI_dBNFLBVbf_G6G2nxyyxwcE,333
25
+ itkdb_gtk-0.0.16.dev5.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
26
+ itkdb_gtk-0.0.16.dev5.dist-info/RECORD,,