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
Merge requests
!86
Add more export formats
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add more export formats
topic/17.0/typst
into
branch/17.0
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Vincent Hatakeyama
requested to merge
topic/17.0/typst
into
branch/17.0
1 month ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
49576071
Show latest version
3 files
+
17
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
49576071
add more export formats
· 49576071
Florent Aide
authored
1 month ago
utils/formats.py
+
11
−
0
Options
@@ -29,6 +29,9 @@
FORMAT_ODS
=
"
ods
"
FORMAT_XLS
=
"
xls
"
FORMAT_DOCX
=
"
docx
"
FORMAT_PNG
=
"
png
"
FORMAT_SVG
=
"
svg
"
FORMAT_TYPST
=
"
typst
"
class
UnkownFormatException
(
Exception
):
@@ -86,6 +89,14 @@
"
application/vnd.openxmlformats-officedocument
"
"
.wordprocessingml.document
"
,
),
FORMAT_PNG
:
Format
(
FORMAT_PNG
,
"
PNG
"
,
"
image/png
"
),
FORMAT_SVG
:
Format
(
FORMAT_SVG
,
"
SVG
"
,
"
image/svg+xml
"
),
FORMAT_TYPST
:
Format
(
FORMAT_TYPST
,
"
Typst
"
,
"
application/typst
"
,
native
=
True
,
),
}
def
get_format
(
self
,
name
):
Loading