rda-python-dsarch 1.0.15__tar.gz → 1.0.18__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.
Files changed (18) hide show
  1. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/PKG-INFO +1 -1
  2. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/pyproject.toml +1 -1
  3. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch/PgMeta.py +6 -9
  4. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch/dsarch.py +4 -4
  5. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch/dsarch.usg +2 -3
  6. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch.egg-info/PKG-INFO +1 -1
  7. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/LICENSE +0 -0
  8. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/MANIFEST.in +0 -0
  9. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/README.md +0 -0
  10. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/setup.cfg +0 -0
  11. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch/PgArch.py +0 -0
  12. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch/__init__.py +0 -0
  13. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
  14. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
  15. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
  16. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
  17. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
  18. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.18}/tests/test_dsarch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 1.0.15
3
+ Version: 1.0.18
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_dsarch"
7
- version = "1.0.15"
7
+ version = "1.0.18"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -592,10 +592,10 @@ def process_meta_gather(cate, logact = PgLOG.LOGWRN):
592
592
  cmd += ary[0]
593
593
  if PgSIG.start_background(cmd, act, opt, 1):
594
594
  cnt += 1
595
- if PgLOG.PGLOG['DSCHECK'] and cnt > 0 and (cnt%20) == 0:
595
+ if PgLOG.PGLOG['DSCHECK'] and cnt > 0 and (cnt%10) == 0:
596
596
  PgCMD.add_dscheck_dcount(10, 0, logact)
597
597
  elif PgLOG.PGLOG['SYSERR']:
598
- PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'])
598
+ PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'], act)
599
599
  PgLOG.PGLOG['ERR2STD'] = []
600
600
 
601
601
  if cnt > 0:
@@ -608,9 +608,6 @@ def process_meta_gather(cate, logact = PgLOG.LOGWRN):
608
608
  for tidx in TIDXS:
609
609
  PgLOG.pgsystem("{}{}".format(sx, tidx), act, opt)
610
610
 
611
- if PgLOG.PGLOG['DSCHECK'] and (cnt%20) > 0:
612
- PgCMD.add_dscheck_dcount(int((cnt%20)/2), 0, logact)
613
-
614
611
  del META[c]
615
612
  TIDXS = {}
616
613
  switch_logfile()
@@ -645,7 +642,7 @@ def process_meta_delete(cate, logact = PgLOG.LOGWRN):
645
642
  if PgSIG.start_background(cmd, act, opt, 1):
646
643
  cnt += dcnt
647
644
  elif PgLOG.PGLOG['SYSERR']:
648
- PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'])
645
+ PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'], act)
649
646
  PgLOG.PGLOG['ERR2STD'] = []
650
647
 
651
648
  if cnt > 0:
@@ -670,7 +667,7 @@ def delete_file_metadata(dsid, file, logact = PgLOG.LOGWRN):
670
667
  PgLOG.PGLOG['ERR2STD'] = ["Warning: "]
671
668
  switch_logfile("gatherxml")
672
669
  if not PgLOG.pgsystem("{} -d {} {}".format(CMD['DX'], d, file), logact, opt) and PgLOG.PGLOG['SYSERR']:
673
- PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'])
670
+ PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'], logact)
674
671
  PgLOG.PGLOG['ERR2STD'] = []
675
672
  switch_logfile()
676
673
 
@@ -708,7 +705,7 @@ def process_meta_move(cate, logact = PgLOG.LOGWRN):
708
705
  if PgSIG.start_background(cmd, act, opt, 1):
709
706
  cnt += 1
710
707
  elif PgLOG.PGLOG['SYSERR']:
711
- PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'])
708
+ PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'], act)
712
709
  PgLOG.PGLOG['ERR2STD'] = []
713
710
 
714
711
  if cnt > 0:
@@ -744,7 +741,7 @@ def process_meta_summary(cate, logact = PgLOG.LOGWRN):
744
741
  if PgSIG.start_background(cmd, act, opt, 1):
745
742
  cnt += 1
746
743
  elif PgLOG.PGLOG['SYSERR']:
747
- PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'])
744
+ PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'], act)
748
745
  PgLOG.PGLOG['ERR2STD'] = []
749
746
 
750
747
  if cnt > 0:
@@ -390,11 +390,11 @@ def archive_web_files():
390
390
  while True:
391
391
  for i in range(bidx, ALLCNT):
392
392
  if PgSIG.PGSIG['BPROC'] < 2 and i > bidx and ((i-bidx)%20) == 0:
393
- if PgLOG.PGLOG['DSCHECK']:
394
- PgCMD.set_dscheck_dcount(i, chksize, PgOPT.PGOPT['extlog'])
395
393
  if metacnt >= PgOPT.PGOPT['RSMAX']:
396
394
  metatotal += PgMeta.process_metadata("W", metacnt, PgOPT.PGOPT['emerol'])
397
395
  metacnt = 0
396
+ if PgLOG.PGLOG['DSCHECK'] and metacnt == 0:
397
+ PgCMD.set_dscheck_dcount(i, chksize, PgOPT.PGOPT['extlog'])
398
398
  if 'EM' in PgOPT.params:
399
399
  PgLOG.PGLOG['PRGMSG'] = "{}/{} of {} web file{} archived/processed".format(acnt, i, ALLCNT, s)
400
400
  lfile = locfile = PgOPT.params['LF'][i]
@@ -2760,11 +2760,11 @@ def set_webfile_info(include = None):
2760
2760
  reorder = metatotal = metacnt = ADDCNT = MODCNT = 0
2761
2761
  for i in range(bidx, ALLCNT):
2762
2762
  if i > bidx and ((i-bidx)%20) == 0:
2763
- if PgLOG.PGLOG['DSCHECK']:
2764
- PgCMD.add_dscheck_dcount(20, 0, PgOPT.PGOPT['extlog'])
2765
2763
  if metacnt >= PgOPT.PGOPT['RSMAX']:
2766
2764
  metatotal += PgMeta.process_metadata("W", metacnt, PgOPT.PGOPT['emerol'])
2767
2765
  metacnt = 0
2766
+ if PgLOG.PGLOG['DSCHECK'] and metacnt == 0:
2767
+ PgCMD.set_dscheck_dcount(i, 0, PgOPT.PGOPT['extlog'])
2768
2768
  if 'EM' in PgOPT.params:
2769
2769
  PgLOG.PGLOG['PRGMSG'] = "{}/{}/{} of {} {} Web file record{} added/modified/processed".format(ADDCNT, MODCNT, i, ALLCNT, dsid, s)
2770
2770
  if not PgOPT.params['WF'][i]: continue
@@ -1657,7 +1657,6 @@ IMMA_2.4_2007.tar<:>37<:>IMMA<:>Z.TAR<:>D<:>656820224<:>
1657
1657
  [-(LN|LoginName) LoginAccountName]
1658
1658
  [-(DB|Debug) DebugModeInfo]
1659
1659
 
1660
-
1661
1660
  Mode options that can be specified for this action:
1662
1661
  -(MD|MyDataset) - overrides the default specialist and enables RDADB
1663
1662
  information to be set by any one
@@ -2178,8 +2177,8 @@ Information options are used to pass information, one or multiple values, into
2178
2177
  dataset, or begin time of a version control record.
2179
2178
 
2180
2179
  -DA or -AcessFlag, (Alias: -DataAccessFlag, -FileListFlag). flags to show web file
2181
- lists at Dataset and/or top group levels; B-Both Filelists (default value),
2182
- C-Complete File List, F-Faceted Browse or N-No File List.
2180
+ lists at Dataset and/or top group levels; B-Both Filelists,
2181
+ C-Complete File List (default value), F-Faceted Browse or N-No File List.
2183
2182
 
2184
2183
  -DB or -Debug, to turn on debug mode with specified information. This option
2185
2184
  provides up to 3 values, they are Debug Level, debug log file path and debug
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 1.0.15
3
+ Version: 1.0.18
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch