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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iniUts
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Ini file manipulator
5
5
  Home-page:
6
6
  Author: Melque Lima
@@ -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 = { k.replace("&_",""):v for k,v in self.cp_dev.section2Dict(section).items() } if section in self.cp_dev.getSections() else {}
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iniUts
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Ini file manipulator
5
5
  Home-page:
6
6
  Author: Melque Lima
@@ -10,7 +10,7 @@ classifiers = [
10
10
 
11
11
  setup(
12
12
  name='iniUts',
13
- version='2.0.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