Skip to content

Commit

Permalink
Atualizando referencia ao signxml
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed Sep 19, 2016
1 parent 7d7da38 commit 947075a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytrustnfe/nfe/assinatura.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def assina_xml(self, xml_element, reference):
c14n_algorithm='http://www.w3.org/TR/2001/REC-xml-c14n-20010315')

signed_root = signer.sign(
xml_element, key=key, cert=cert, reference_only=True,
xml_element, key=key, cert=cert,
reference_uri=('#%s' % reference))
if len(signed_root) > 3:
signed_root[2].append(signed_root[3])
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coveralls
http://xmlsoft.org/sources/python/libxml2-python-2.6.21.tar.gz
https://github.com/odoo-brazil/pyxmlsec/archive/master.zip
Jinja2
https://github.com/Trust-Code/signxml/archive/sign-by-reference.zip
signxml
pypandoc
suds
suds_requests
Expand Down

0 comments on commit 947075a

Please sign in to comment.