Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
cloudooo
Commits
ad60ba5b
Commit
ad60ba5b
authored
Apr 22, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ooo: remove unused _getElementNameByService method
parent
fa7ed25b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
cloudooo/handler/ooo/mimemapper.py
cloudooo/handler/ooo/mimemapper.py
+0
-18
No files found.
cloudooo/handler/ooo/mimemapper.py
View file @
ad60ba5b
...
...
@@ -36,7 +36,6 @@ from zope.interface import implementer
from
filter
import
Filter
from
os
import
environ
,
path
from
cloudooo.interfaces.mimemapper
import
IMimemapper
from
types
import
InstanceType
import
json
...
...
@@ -68,23 +67,6 @@ class MimeMapper(object):
if
k
.
startswith
(
document_type
):
return
v
def
_getElementNameByService
(
self
,
uno_service
,
ignore_name_list
=
[]):
"""Returns an dict with elements."""
name_list
=
uno_service
.
getElementNames
()
service_dict
=
{}
for
name
in
iter
(
name_list
):
element_dict
=
{}
element_list
=
uno_service
.
getByName
(
name
)
for
obj
in
iter
(
element_list
):
if
obj
.
Name
in
ignore_name_list
:
continue
elif
type
(
obj
.
Value
)
==
InstanceType
:
continue
element_dict
[
obj
.
Name
]
=
obj
.
Value
service_dict
[
name
]
=
element_dict
return
service_dict
def
isLoaded
(
self
):
"""Verify if filters were loaded"""
return
self
.
_loaded
...
...
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