rda-python-dsarch 1.0.13__tar.gz → 1.0.14__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.13 → rda_python_dsarch-1.0.14}/PKG-INFO +1 -1
  2. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/pyproject.toml +1 -1
  3. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch/dsarch.py +7 -6
  4. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch.egg-info/PKG-INFO +1 -1
  5. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/LICENSE +0 -0
  6. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/MANIFEST.in +0 -0
  7. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/README.md +0 -0
  8. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/setup.cfg +0 -0
  9. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch/PgArch.py +0 -0
  10. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch/PgMeta.py +0 -0
  11. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch/__init__.py +0 -0
  12. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch/dsarch.usg +0 -0
  13. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
  14. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
  15. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
  16. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
  17. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
  18. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.14}/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.13
3
+ Version: 1.0.14
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.13"
7
+ version = "1.0.14"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -1006,7 +1006,7 @@ def archive_saved_files():
1006
1006
  #
1007
1007
  def crosscopy_web_files(aname):
1008
1008
 
1009
- global ALLCNT, MODCNT, RETSTAT
1009
+ global MODCNT, RETSTAT
1010
1010
  tname = 'wfile'
1011
1011
  dsid = PgOPT.params['DS']
1012
1012
  s = 's' if ALLCNT > 1 else ''
@@ -1167,7 +1167,7 @@ def crosscopy_web_files(aname):
1167
1167
  #
1168
1168
  def crosscopy_help_files(aname):
1169
1169
 
1170
- global ALLCNT, MODCNT, RETSTAT
1170
+ global MODCNT, RETSTAT
1171
1171
  tname = 'hfile'
1172
1172
  dsid = PgOPT.params['DS']
1173
1173
  dcnd = "dsid = '{}'".format(dsid)
@@ -1326,7 +1326,7 @@ def crosscopy_help_files(aname):
1326
1326
  #
1327
1327
  def crosscopy_saved_files(aname):
1328
1328
 
1329
- global ALLCNT, MODCNT, RETSTAT
1329
+ global MODCNT, RETSTAT
1330
1330
  tname = 'sfile'
1331
1331
  dsid = PgOPT.params['DS']
1332
1332
  dcnd = "dsid = '{}'".format(dsid)
@@ -2044,7 +2044,7 @@ def restore_backup_savedfiles():
2044
2044
  #
2045
2045
  def crosscopy_backup_files():
2046
2046
 
2047
- global ALLCNT, MODCNT, RETSTAT
2047
+ global MODCNT, RETSTAT
2048
2048
  tname = 'bfile'
2049
2049
  qtype = 'D'
2050
2050
  dsid = PgOPT.params['DS']
@@ -3037,6 +3037,9 @@ def set_one_helpfile(i, pgrec, file, flds, type, info = None, ndsid = None):
3037
3037
  record['time_modified'] = info['time_modified']
3038
3038
  record['date_created'] = info['date_created'] if 'date_created' in info else record['date_modified']
3039
3039
  record['time_created'] = info['time_created'] if 'time_created' in info else record['time_modified']
3040
+ elif 'url' in record:
3041
+ record['locflag'] = 'R'
3042
+ record['date_modified'] = PgUtil.curdate()
3040
3043
  else:
3041
3044
  return PgLOG.pglog("{}-{}: {}".format(type, file, PgLOG.PGLOG['MISSFILE']), PgOPT.PGOPT['emlerr'])
3042
3045
  if 'disp_order' not in record:
@@ -3805,7 +3808,6 @@ def saved_to_web_files():
3805
3808
  #
3806
3809
  def delete_web_files():
3807
3810
 
3808
- global RETSTAT
3809
3811
  tname = 'wfile'
3810
3812
  dsid = PgOPT.params['DS']
3811
3813
  bucket = "rda-data"
@@ -3919,7 +3921,6 @@ def delete_web_files():
3919
3921
  #
3920
3922
  def delete_help_files():
3921
3923
 
3922
- global RETSTAT
3923
3924
  tname = 'hfile'
3924
3925
  dsid = PgOPT.params['DS']
3925
3926
  bucket = "rda-data"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 1.0.13
3
+ Version: 1.0.14
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