Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
l10n_mx
Facturacion
Commits
def6151d
Commit
def6151d
authored
6 years ago
by
agb80
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(flake): corrige los estilos de flake
parent
b60c5daf
Pipeline
#5868
failed with stage
in 2 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
l10n_mx_params_pac/pacs/expide_tu_factura.py
l10n_mx_params_pac/pacs/expide_tu_factura.py
+5
-4
No files found.
l10n_mx_params_pac/pacs/expide_tu_factura.py
View file @
def6151d
...
...
@@ -82,9 +82,10 @@ class ParamsPac(models.Model):
def
validate_response
(
cls
,
soap_response
):
"""if response.status_code not 200 then raise Exception"""
if
str
(
soap_response
.
status_code
)
not
in
"200"
:
raise
Exception
(
"Bad response: "
+
str
(
soap_response
.
status_code
)
+
","
+
soap_response
.
content
)
raise
Exception
(
"Bad response: "
+
str
(
soap_response
.
status_code
)
+
","
+
soap_response
.
content
)
@
api
.
one
def
sign_file
(
self
,
fdata
=
None
):
...
...
@@ -202,7 +203,7 @@ class ParamsPac(models.Model):
self
.
validate_response
(
response
)
res
=
xmltodict
.
parse
(
response
.
text
)
_logger
.
debug
(
res
)
# Procesar los resultados obtenidos del PAC
try
:
resultado
=
res
[
"soapenv:Envelope"
][
"soapenv:Body"
][
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment