Browse Source

Melhoria de código

tags/0.1.5
Danimar Ribeiro 11 years ago
parent
commit
24876d4225
  1. 1
      pytrustnfe/__init__.py
  2. 3
      pytrustnfe/servicos/assinatura.py
  3. 1
      pytrustnfe/test/__init__.py
  4. 2
      setup.py

1
pytrustnfe/__init__.py

@ -1 +0,0 @@
import servicos

3
pytrustnfe/servicos/assinatura.py

@ -48,7 +48,8 @@ class Assinatura(object):
keyInfoNode.addX509Data()
dsig_ctx = xmlsec.DSigCtx()
chave = xmlsec.cryptoAppKeyLoad(filename=str(self.arquivo), format=xmlsec.KeyDataFormatPkcs12, pwd=str(self.senha), pwdCallback=None, pwdCallbackCtx=None)
chave = xmlsec.cryptoAppKeyLoad(filename=str(self.arquivo), format=xmlsec.KeyDataFormatPkcs12,
pwd=str(self.senha), pwdCallback=None, pwdCallbackCtx=None)
dsig_ctx.signKey = chave
dsig_ctx.sign(signNode)

1
pytrustnfe/test/__init__.py

@ -1 +0,0 @@
import test_assinatura

2
setup.py

@ -16,7 +16,7 @@ setup(
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages = find_packages(exclude=['*tests*']),
packages = find_packages(exclude=['*test*']),
url = 'https://github.com/danimaribeiro/PyNfeTrust',
license = 'LGPL-v2.1+',
description = 'PyNfeTrust é uma biblioteca para envio de NF-e',

Loading…
Cancel
Save