Browse Source

Uses settings instead of options

pull/156/head
Johny Chen Jy 7 years ago
committed by Danimar Ribeiro
parent
commit
8c43f65576
  1. 4
      pytrustnfe/nfe/__init__.py
  2. 2
      setup.py

4
pytrustnfe/nfe/__init__.py

@ -134,7 +134,7 @@ def _send(certificado, method, **kwargs):
port = next(iter(client.wsdl.port_types))
first_operation = next(iter(client.wsdl.port_types[port].operations))
with client.options(raw_response=True):
with client.settings(raw_response=True):
response = client.service[first_operation](xml)
response, obj = sanitize_response(response.text)
return {
@ -264,7 +264,7 @@ def consulta_distribuicao_nfe(certificado, **kwargs):
port = next(iter(client.wsdl.port_types))
first_operation = next(iter(client.wsdl.port_types[port].operations))
with client.options(raw_response=True):
with client.settings(raw_response=True):
response = client.service[first_operation](nfeDadosMsg=xml, _soapheaders=[xml_um])
response, obj = sanitize_response(response.text)
return {

2
setup.py

@ -1,7 +1,7 @@
# coding=utf-8
from setuptools import setup, find_packages
VERSION = "0.1.50"
VERSION = "0.1.51"
setup(
name="PyTrustNFe",

Loading…
Cancel
Save