iniUts 2.0.0__tar.gz → 2.0.1__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.
- {iniuts-2.0.0/iniUts.egg-info → iniuts-2.0.1}/PKG-INFO +1 -1
- {iniuts-2.0.0 → iniuts-2.0.1}/iniUts/__init__.py +5 -2
- {iniuts-2.0.0 → iniuts-2.0.1/iniUts.egg-info}/PKG-INFO +1 -1
- {iniuts-2.0.0 → iniuts-2.0.1}/setup.py +1 -1
- {iniuts-2.0.0 → iniuts-2.0.1}/CHANGELOG.txt +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/LICENCE.txt +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/MANIFEST.in +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/README.md +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/commands.txt +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/iniUts/secret.py +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/iniUts.egg-info/SOURCES.txt +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/iniUts.egg-info/dependency_links.txt +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/iniUts.egg-info/requires.txt +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/iniUts.egg-info/top_level.txt +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/run.py +0 -0
- {iniuts-2.0.0 → iniuts-2.0.1}/setup.cfg +0 -0
|
@@ -117,6 +117,10 @@ class IniUts():
|
|
|
117
117
|
self.in_prd = in_prd
|
|
118
118
|
self.encryption_key = encryption_key
|
|
119
119
|
self.checkKeys()
|
|
120
|
+
|
|
121
|
+
def refresh(self):
|
|
122
|
+
self.cp_prd = iniCp(self.cp_prd.ini_file,encoding=self.cp_prd.encoding)
|
|
123
|
+
self.cp_dev = iniCp(self.cp_dev.ini_file,encoding=self.cp_dev.encoding) if self.cp_dev else None
|
|
120
124
|
|
|
121
125
|
|
|
122
126
|
#TODAS AS CHAVES DE DEV DEVE CONTER EM PRD
|
|
@@ -188,8 +192,7 @@ class IniUts():
|
|
|
188
192
|
dtClass.__INIUTS__ = self
|
|
189
193
|
dtClass.__CRYPTED_KEYS__ = [ x.replace("&_","") for x in self.cp_prd.getKeys(section) if "&_" in x ]
|
|
190
194
|
dict_prd = { k.replace("&_",""):v for k,v in self.cp_prd.section2Dict(section).items() }
|
|
191
|
-
dict_dev =
|
|
192
|
-
|
|
195
|
+
dict_dev = { k.replace("&_",""):v for k,v in self.cp_dev.section2Dict(section).items() } if self.cp_dev and section in self.cp_dev.getSections() else {}
|
|
193
196
|
#ENCRIPTA VARIAVEIS INICIAIS
|
|
194
197
|
for k in dtClass.__CRYPTED_KEYS__:
|
|
195
198
|
# ENCRIPTA VARIAVEIS INICIAIS NO ARQUIVO DE DEV
|
|
@@ -10,7 +10,7 @@ classifiers = [
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name='iniUts',
|
|
13
|
-
version='2.0.
|
|
13
|
+
version='2.0.1',
|
|
14
14
|
description='Ini file manipulator',
|
|
15
15
|
long_description=open('README.md').read() + '\n\n' + open('CHANGELOG.txt').read(),
|
|
16
16
|
long_description_content_type='text/markdown',
|
|
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
|