projects
/
cascardo
/
irpf-gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quebra de linha entre funções
[cascardo/irpf-gui.git]
/
src
/
municipios.py
diff --git
a/src/municipios.py
b/src/municipios.py
index
380ffa7
..
7687985
100644
(file)
--- a/
src/municipios.py
+++ b/
src/municipios.py
@@
-21,6
+21,7
@@
class Municipios:
self.xml = xml.dom.minidom.parse("res/%s.xml" % (UF,))
self.l = []
self._list()
self.xml = xml.dom.minidom.parse("res/%s.xml" % (UF,))
self.l = []
self._list()
+
def _list(self):
for i in self.xml.childNodes[0].childNodes:
if "COL3" in i.attributes.keys():
def _list(self):
for i in self.xml.childNodes[0].childNodes:
if "COL3" in i.attributes.keys():
@@
-29,11
+30,13
@@
class Municipios:
i.attributes["COL3"].nodeValue))
def list(self):
return self.l
i.attributes["COL3"].nodeValue))
def list(self):
return self.l
+
def get_municipio(self, code):
for i in self.l:
if i[0] == code:
return i
return None
def get_municipio(self, code):
for i in self.l:
if i[0] == code:
return i
return None
+
def verify_cep(self, m, cep):
l = m[2][0:7]
h = m[2][9:16]
def verify_cep(self, m, cep):
l = m[2][0:7]
h = m[2][9:16]