rda-python-common 3.0.2__tar.gz → 3.0.3__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_common-3.0.2/src/rda_python_common.egg-info → rda_python_common-3.0.3}/PKG-INFO +1 -1
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/pyproject.toml +1 -1
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_log.py +6 -5
- {rda_python_common-3.0.2 → rda_python_common-3.0.3/src/rda_python_common.egg-info}/PKG-INFO +1 -1
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/LICENSE +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/README.md +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/setup.cfg +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/__init__.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_cmd.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_dbi.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_file.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_lock.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_opt.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_password.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_sig.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_split.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pg_util.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pgpassword.py +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common/pgpassword.usg +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/entry_points.txt +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-3.0.2 → rda_python_common-3.0.3}/test/test_common.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.3
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -262,22 +262,23 @@ class PgLOG:
|
|
|
262
262
|
msg += " with 1 Error:\n"
|
|
263
263
|
else:
|
|
264
264
|
msg += " with {} Errors:\n".format(self.PGLOG['ERRCNT'])
|
|
265
|
+
msg += "\nERROR MESSAGE:\n"
|
|
265
266
|
msg += self.break_long_string(self.PGLOG['ERRMSG'], 512, None, self.PGLOG['EMLMAX']/2, None, 50, 25)
|
|
266
267
|
self.PGLOG['ERRCNT'] = 0
|
|
267
268
|
self.PGLOG['ERRMSG'] = ''
|
|
268
269
|
if self.PGLOG['SUMMSG']:
|
|
269
|
-
msg +=
|
|
270
|
-
if self.PGLOG['SUMMSG']: msg += "Summary:\n"
|
|
270
|
+
msg += "\nSUMMARY:\n"
|
|
271
271
|
msg += self.break_long_string(self.PGLOG['SUMMSG'], 512, None, self.PGLOG['EMLMAX']/2, None, 50, 25)
|
|
272
272
|
if self.PGLOG['EMLMSG']:
|
|
273
|
-
msg +=
|
|
274
|
-
if self.PGLOG['SUMMSG']: msg += "Detail Information:\n"
|
|
273
|
+
msg += "\nDETAIL INFORMATION:\n"
|
|
275
274
|
self.PGLOG['EMLMSG'] = msg + self.break_long_string(self.PGLOG['EMLMSG'], 512, None, self.PGLOG['EMLMAX'], None, 50, 40)
|
|
276
275
|
self.PGLOG['SUMMSG'] = "" # in case not
|
|
277
276
|
else:
|
|
278
277
|
if logact&self.ERRLOG: # record error for email summary
|
|
279
278
|
self.PGLOG['ERRCNT'] += 1
|
|
280
|
-
if
|
|
279
|
+
if self.PGLOG['ERRMSG']: # blank line between consecutive errors
|
|
280
|
+
if not self.PGLOG['ERRMSG'].endswith('\n'): self.PGLOG['ERRMSG'] += "\n"
|
|
281
|
+
self.PGLOG['ERRMSG'] += "\n"
|
|
281
282
|
self.PGLOG['ERRMSG'] += "{}. {}".format(self.PGLOG['ERRCNT'], msg)
|
|
282
283
|
elif logact&self.EMLSUM:
|
|
283
284
|
if self.PGLOG['SUMMSG']:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.3
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.2 → rda_python_common-3.0.3}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|