Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Redner Odoo Module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Redner Odoo Module
Commits
f3449773
Commit
f3449773
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
flake8 and pylint
parent
75318994
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!23
2.6.0 ✨ Redner server an use an unix socket too so also handle it
,
!18
✨ Redner server an use an unix socket too so also handle it
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
controllers/main.py
+2
-2
2 additions, 2 deletions
controllers/main.py
models/render_report.py
+2
-2
2 additions, 2 deletions
models/render_report.py
utils/formats.py
+2
-2
2 additions, 2 deletions
utils/formats.py
with
6 additions
and
6 deletions
controllers/main.py
+
2
−
2
View file @
f3449773
...
...
@@ -63,8 +63,8 @@
@route
()
def
report_download
(
self
,
data
,
token
):
"""
This function is used by
'
redneractionmanager.js
'
in order to
trigger
the download of a redner/controller report.
"""
This function is used by
'
redneractionmanager.js
'
in order to
trigger
the download of a redner/controller report.
:param data: a javascript array JSON.stringified containg report
internal url ([0]) and type [1]
:returns: Response with a filetoken cookie and an attachment header
...
...
This diff is collapsed.
Click to expand it.
models/render_report.py
+
2
−
2
View file @
f3449773
...
...
@@ -150,5 +150,5 @@
for
temporary_file
in
temporary_files
:
try
:
os
.
unlink
(
temporary_file
)
except
(
OSError
,
IOError
)
:
except
OSError
:
logger
.
error
(
...
...
@@ -154,5 +154,5 @@
logger
.
error
(
"
Error when trying to remove file %s
"
%
temporary_file
"
Error when trying to remove file %s
"
,
temporary_file
)
def
create_report
(
self
,
res_ids
,
data
):
...
...
This diff is collapsed.
Click to expand it.
utils/formats.py
+
2
−
2
View file @
f3449773
...
...
@@ -80,8 +80,8 @@
}
def
get_format
(
self
,
name
):
"""
an accessor that will return a redner.formats.Format instance that
can
be used to know the LibreOffice filter name, the mimetype etc.
"""
an accessor that will return a redner.formats.Format instance that
can
be used to know the LibreOffice filter name, the mimetype etc.
:param name: the name of the LibreOffice filter (ie: format) you want
to obtain
:type name: string
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment