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():
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 verify_cep(self, m, cep):
l = m[2][0:7]
h = m[2][9:16]