diff --git a/files.txt b/files.txt new file mode 100644 index 0000000..f45b4c3 --- /dev/null +++ b/files.txt @@ -0,0 +1,78 @@ +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/EGG-INFO/top_level.txt +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/EGG-INFO/not-zip-safe +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/EGG-INFO/SOURCES.txt +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/EGG-INFO/dependency_links.txt +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/EGG-INFO/PKG-INFO +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/EGG-INFO/requires.txt +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/certificado.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/client.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/exceptions.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/utils.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/Servidores.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/exceptions.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/Servidores.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/utils.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/client.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/certificado.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/filters.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/validate.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/validate.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/filters.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/schemas/tiposBasico_v3.10.xsd +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/schemas/nfe_v3.10.xsd +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/schemas/xmldsig-core-schema_v1.01.xsd +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/schemas/enviNFe_v3.10.xsd +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/xml/schemas/leiauteNFe_v3.10.xsd +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/assinatura.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/assinatura.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/ginfes/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/ginfes/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/issintel/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/issintel/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/saatri/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/saatri/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/issnet/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/issnet/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/betha/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/betha/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/webiss/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/webiss/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/ConsultaNFeRecebidas.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/ConsultaInformacoesLote.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/EnvioRPS.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/ConsultaNFe.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/EnvioLoteRPS.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/ConsultaNFeEmitidas.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/CancelamentoNFe.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/ConsultaLote.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfse/paulistana/templates/ConsultaCNPJ.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/__init__.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/comunicacao.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/comunicacao.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/assinatura.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/assinatura.pyc +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/__init__.py +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeRetAutorizacao.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeConsultaDest.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/RecepcaoEventoManifesto.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeDownloadNF.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeConsultaProtocolo.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/RecepcaoEventoCarta.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeAutorizacao.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeConsultaCadastro.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeStatusServico.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/NfeInutilizacao.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/RecepcaoEventoEPEC.xml +/home/raphael/projects-python/nfepy/lib/python2.7/site-packages/PyTrustNFe-0.1.28-py2.7.egg/pytrustnfe/nfe/templates/RecepcaoEventoCancelamento.xml +/home/raphael/projects-python/nfepy/bin/easy_install-3.5 +/home/raphael/projects-python/nfepy/bin/easy_install +/home/raphael/projects-python/nfepy/bin/pasteurize +/home/raphael/projects-python/nfepy/bin/futurize diff --git a/pytrustnfe/nfe/__init__.py b/pytrustnfe/nfe/__init__.py index a594f88..dbd6fd1 100644 --- a/pytrustnfe/nfe/__init__.py +++ b/pytrustnfe/nfe/__init__.py @@ -85,6 +85,7 @@ def _add_qrCode(xml, **kwargs): ambiente = kwargs['ambiente'] #doc identificação do cliente dest_cpf = 'Inexistente' + dest = nfe.find(".//{http://www.portalfiscal.inf.br/nfe}dest") if dest: dest_parent = dest.getparent() dest_parent.remove(dest) @@ -110,7 +111,6 @@ def _add_qrCode(xml, **kwargs): cid_token = kwargs['NFes'][0]['infNFe']['codigo_seguranca']['cid_token'] #codigo de seguranca do contribuinte csc = kwargs['NFes'][0]['infNFe']['codigo_seguranca']['csc'] - dest = nfe.find(".//{http://www.portalfiscal.inf.br/nfe}dest") #hash qrCode if dest_cpf == None: