Browse Source

Revert a few things before for nfe

pull/265/head
Danimar Ribeiro 6 years ago
parent
commit
944c7145bf
  1. 10
      pytrustnfe/nfe/assinatura.py
  2. 2
      setup.py

10
pytrustnfe/nfe/assinatura.py

@ -24,7 +24,7 @@ class Assinatura(object):
method=signxml.methods.enveloped,
signature_algorithm="rsa-sha1",
digest_algorithm="sha1",
c14n_algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments",
c14n_algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",
)
ns = {}
@ -42,9 +42,9 @@ class Assinatura(object):
)
if getchildren and element_signed is not None and signature is not None:
element_intern = element_signed.getchildren()
element_intern.append(signature)
child = element_signed.getchildren()
child.append(signature)
elif element_signed is not None and signature is not None:
element_extern = element_signed.getparent()
element_extern.append(signature)
parent = element_signed.getparent()
parent.append(signature)
return etree.tostring(signed_root, encoding=str)

2
setup.py

@ -2,7 +2,7 @@
from setuptools import setup, find_packages
VERSION = "1.0.46"
VERSION = "1.0.47"
setup(

Loading…
Cancel
Save