rda-python-common 2.0.0__py3-none-any.whl → 2.0.2__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.
@@ -43,7 +43,7 @@ class PgDBI(PgLOG):
43
43
  self.TABLES = {} # record table field information
44
44
  self.SEQUENCES = {} # record table sequence fielnames
45
45
  self.SPECIALIST = {} # hash array refrences to specialist info of dsids
46
- self.self.SYSDOWN = {}
46
+ self.SYSDOWN = {}
47
47
  self.PGDBI = {}
48
48
  self.ADDTBLS = []
49
49
  self.PGSIGNS = ['!', '<', '>', '<>']
@@ -299,7 +299,7 @@ class PgLOG:
299
299
  if cc:
300
300
  emlmsg['Cc'] = cc
301
301
  logmsg += " Cc'd " + cc
302
- if not subject: subject = "Message from {}-{}".format(self.PGLOG['HOSTNAME'], self.self.get_command())
302
+ if not subject: subject = "Message from {}-{}".format(self.PGLOG['HOSTNAME'], self.get_command())
303
303
  # if not re.search(r'!$', subject): subject += '!'
304
304
  emlmsg['Subject'] = subject
305
305
  if self.CPID['CPID']: logmsg += " in " + self.CPID['CPID']
@@ -15,7 +15,6 @@
15
15
 
16
16
  import sys
17
17
  import re
18
- import hvac
19
18
  from .pg_dbi import PgDBI
20
19
 
21
20
  class PgPassword(PgDBI):
@@ -39,7 +38,7 @@ class PgPassword(PgDBI):
39
38
  self.dbopt = False
40
39
  self.password = ''
41
40
 
42
- # read in comman line parameters
41
+ # read in command line parameters
43
42
  def read_parameters(self):
44
43
  argv = sys.argv[1:]
45
44
  opt = None
@@ -73,7 +72,7 @@ class PgPassword(PgDBI):
73
72
  sys.exit(0)
74
73
 
75
74
  # get the pgpassword
76
- def read_pgpassword(self):
75
+ def start_actions(self):
77
76
  if self.dbopt:
78
77
  self.default_scinfo(self.DBINFO['dbname'], self.DBINFO['scname'], self.DBINFO['dbhost'],
79
78
  self.DBINFO['lnname'], None, self.DBINFO['dbport'])
@@ -82,10 +81,10 @@ class PgPassword(PgDBI):
82
81
 
83
82
  # main function to excecute this script
84
83
  def main():
85
- pgpass = PgPassword()
86
- pgpass.read_parameters()
87
- pgpass.read_pgpassword()
88
- print(pgpass.password)
84
+ object = PgPassword()
85
+ object.read_parameters()
86
+ object.start_actions()
87
+ print(object.password)
89
88
  sys.exit(0)
90
89
 
91
90
  # call main() to start program
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 2.0.0
3
+ Version: 2.0.2
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
@@ -9,19 +9,19 @@ rda_python_common/PgSplit.py,sha256=SSg5_Qu5PqP44EkqebO-V_cErNcdE2QtORgFHQ7RqlQ,
9
9
  rda_python_common/PgUtil.py,sha256=OqESKCd72b9g8m8jwjPJhXDtPYlW6G8oSOhwChvz2Cg,48600
10
10
  rda_python_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  rda_python_common/pg_cmd.py,sha256=XyQ9-p4Wx2aHeySG7pQIPmcJG62Mpf_5kpTj18-1MX4,21984
12
- rda_python_common/pg_dbi.py,sha256=4MgQaESYrLJ_GoRy-aOLII6pGsn5L6oZOClVJ_j69yY,84153
12
+ rda_python_common/pg_dbi.py,sha256=qwheBHypWlFn072bjKvFJuGrRlIEkgGGFTN6z22rLCg,84148
13
13
  rda_python_common/pg_file.py,sha256=FoBC5GyLrXcSewUC6dfTj_QeDO1HTFDeF15CdTfXH_c,108143
14
14
  rda_python_common/pg_lock.py,sha256=BsyPebNOKtui0Wf_JCmIm89wrH5EUQfTD_vr8HcQ3wo,24098
15
- rda_python_common/pg_log.py,sha256=JKPROE--8XIDQo0YQEucsHhcg0clITu-aO16bF26koA,60114
15
+ rda_python_common/pg_log.py,sha256=RKL05xDvxyJcsCdWtwY1AyBs4kXwOvQsNITOXBgngSI,60109
16
16
  rda_python_common/pg_opt.py,sha256=yqOrTrDjq0sEQiN5uCR1mhfwwEqTc99qi0u0kmkk5dg,62707
17
- rda_python_common/pg_pass.py,sha256=k-p8HBMHDz4AiN3hG0SiAMtg_KQzCEcdN_xbZt6ISz8,2925
17
+ rda_python_common/pg_pass.py,sha256=qjgZwp_pTCsp0d1smIKrRoUPtpOxMKyQnteWEonBR_o,2910
18
18
  rda_python_common/pg_sig.py,sha256=_NBXhjB-4_rJEgj8UUmOq52IUXNINld_iICsRrdztso,36782
19
19
  rda_python_common/pg_split.py,sha256=v3xufJ1_CiFHR4wejLm5k0TDKJmeKPqu0kdLEBoWe-A,10057
20
20
  rda_python_common/pg_util.py,sha256=12a0z9zMBo2aZWYS-j0vQvnFDHhdkmMwcPxtHxRvEjE,54868
21
21
  rda_python_common/pgpassword.py,sha256=coppnpJ86Rs02025W-4j63z0IUIVlRNcnbrXz6dUL_o,2364
22
- rda_python_common-2.0.0.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
23
- rda_python_common-2.0.0.dist-info/METADATA,sha256=LwiGkcY7N0bjipf1qVDEaCrZmM_UwvNamfDkTD4-WxY,740
24
- rda_python_common-2.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- rda_python_common-2.0.0.dist-info/entry_points.txt,sha256=ALhRZ6NbX43Fxi8iUPM_xu1b0ZCfBFuvQBBTxFybTfs,106
26
- rda_python_common-2.0.0.dist-info/top_level.txt,sha256=KVQmx7D3DD-jsiheqL8HdTrRE14hpRnZY5_ioMArA5k,18
27
- rda_python_common-2.0.0.dist-info/RECORD,,
22
+ rda_python_common-2.0.2.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
23
+ rda_python_common-2.0.2.dist-info/METADATA,sha256=ivYZRj0VK5aEtUNquwcCbGHphKlLMbtapFGA4iOErm4,740
24
+ rda_python_common-2.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
+ rda_python_common-2.0.2.dist-info/entry_points.txt,sha256=ALhRZ6NbX43Fxi8iUPM_xu1b0ZCfBFuvQBBTxFybTfs,106
26
+ rda_python_common-2.0.2.dist-info/top_level.txt,sha256=KVQmx7D3DD-jsiheqL8HdTrRE14hpRnZY5_ioMArA5k,18
27
+ rda_python_common-2.0.2.dist-info/RECORD,,