rda-python-dsarch 1.0.11__tar.gz → 1.0.13__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.
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/PKG-INFO +3 -2
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/pyproject.toml +1 -1
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch/dsarch.py +13 -14
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/PKG-INFO +3 -2
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/LICENSE +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/MANIFEST.in +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/README.md +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/setup.cfg +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch/PgArch.py +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch/PgMeta.py +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch/__init__.py +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch/dsarch.usg +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
- {rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/tests/test_dsarch.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_dsarch
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.13
|
|
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
|
|
@@ -13,5 +13,6 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
Requires-Dist: rda_python_common
|
|
15
15
|
Requires-Dist: rda_python_setuid
|
|
16
|
+
Dynamic: license-file
|
|
16
17
|
|
|
17
18
|
RDA python Package to archive and maintain RDA datasets.
|
|
@@ -2840,7 +2840,7 @@ def set_one_webfile(i, pgrec, file, flds, type, info = None, ndsid = None, sact
|
|
|
2840
2840
|
record = PgOPT.build_record(flds, pgrec, tname, i)
|
|
2841
2841
|
if pgrec and (pgrec['status'] == 'D' or PgOPT.PGOPT['ACTS']&PgOPT.OPTS['AW'][0]):
|
|
2842
2842
|
record['uid'] = PgOPT.PGOPT['UID']
|
|
2843
|
-
if not info:
|
|
2843
|
+
if not (info and info['date_modified']):
|
|
2844
2844
|
info = PgFile.check_local_file(PgArch.get_web_path(i, file, 1, type),
|
|
2845
2845
|
1, PgOPT.PGOPT['emerol'])
|
|
2846
2846
|
if info:
|
|
@@ -2889,8 +2889,7 @@ def set_one_webfile(i, pgrec, file, flds, type, info = None, ndsid = None, sact
|
|
|
2889
2889
|
record['uid'] = PgOPT.PGOPT['UID']
|
|
2890
2890
|
if 'status' not in record: record['status'] = 'P'
|
|
2891
2891
|
if not info:
|
|
2892
|
-
info = PgFile.check_local_file(PgArch.get_web_path(i, file, 1, type),
|
|
2893
|
-
1, PgOPT.PGOPT['emerol'])
|
|
2892
|
+
info = PgFile.check_local_file(PgArch.get_web_path(i, file, 1, type), 1, PgOPT.PGOPT['emerol'])
|
|
2894
2893
|
if info:
|
|
2895
2894
|
if not info['isfile']: return PgLOG.pglog("file: is a directory", PgOPT.PGOPT['emlerr'])
|
|
2896
2895
|
record['data_size'] = info['data_size']
|
|
@@ -2992,7 +2991,7 @@ def set_one_helpfile(i, pgrec, file, flds, type, info = None, ndsid = None):
|
|
|
2992
2991
|
record = PgOPT.build_record(flds, pgrec, tname, i)
|
|
2993
2992
|
if pgrec and (pgrec['status'] == 'D' or PgOPT.PGOPT['ACTS']&PgOPT.OPTS['AH'][0]):
|
|
2994
2993
|
record['uid'] = PgOPT.PGOPT['UID']
|
|
2995
|
-
if not info:
|
|
2994
|
+
if not (info and info['date_modified']):
|
|
2996
2995
|
info = PgFile.check_local_file(PgArch.get_help_path(i, file, 1, type), 1, PgOPT.PGOPT['emerol'])
|
|
2997
2996
|
if info:
|
|
2998
2997
|
record['data_size'] = info['data_size']
|
|
@@ -3031,15 +3030,15 @@ def set_one_helpfile(i, pgrec, file, flds, type, info = None, ndsid = None):
|
|
|
3031
3030
|
if 'status' not in record: record['status'] = 'P'
|
|
3032
3031
|
if not (info or 'url' in record):
|
|
3033
3032
|
info = PgFile.check_local_file(PgArch.get_help_path(i, file, 1, type), 1, PgOPT.PGOPT['emerol'])
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3033
|
+
if info:
|
|
3034
|
+
if not info['isfile']: return PgLOG.pglog("file: is a directory", PgOPT.PGOPT['emlerr'])
|
|
3035
|
+
record['data_size'] = info['data_size']
|
|
3036
|
+
record['date_modified'] = info['date_modified']
|
|
3037
|
+
record['time_modified'] = info['time_modified']
|
|
3038
|
+
record['date_created'] = info['date_created'] if 'date_created' in info else record['date_modified']
|
|
3039
|
+
record['time_created'] = info['time_created'] if 'time_created' in info else record['time_modified']
|
|
3040
|
+
else:
|
|
3041
|
+
return PgLOG.pglog("{}-{}: {}".format(type, file, PgLOG.PGLOG['MISSFILE']), PgOPT.PGOPT['emlerr'])
|
|
3043
3042
|
if 'disp_order' not in record:
|
|
3044
3043
|
record['disp_order'] = PgArch.get_next_disp_order(dsid, 0, tname, type)
|
|
3045
3044
|
hid = PgDBI.pgadd(tname, record, PgLOG.LGEREX|PgLOG.AUTOID)
|
|
@@ -3161,7 +3160,7 @@ def set_one_savedfile(i, pgrec, file, flds, type, info = None, ndsid = None, sac
|
|
|
3161
3160
|
record = PgOPT.build_record(flds, pgrec, tname, i)
|
|
3162
3161
|
if pgrec and PgOPT.PGOPT['ACTS']&PgOPT.OPTS['AS'][0]:
|
|
3163
3162
|
record['uid'] = PgOPT.PGOPT['UID']
|
|
3164
|
-
if not info:
|
|
3163
|
+
if not (info and info['date_modified']):
|
|
3165
3164
|
info = PgFile.check_local_file(PgArch.get_saved_path(i, file, 1, type), 1, PgOPT.PGOPT['emerol'])
|
|
3166
3165
|
if info:
|
|
3167
3166
|
record['data_size'] = info['data_size']
|
{rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_dsarch
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.13
|
|
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
|
|
@@ -13,5 +13,6 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
Requires-Dist: rda_python_common
|
|
15
15
|
Requires-Dist: rda_python_setuid
|
|
16
|
+
Dynamic: license-file
|
|
16
17
|
|
|
17
18
|
RDA python Package to archive and maintain RDA datasets.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_dsarch-1.0.11 → rda_python_dsarch-1.0.13}/src/rda_python_dsarch.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|