Commit ad60ba5b authored by Jérome Perrin's avatar Jérome Perrin

ooo: remove unused _getElementNameByService method

parent fa7ed25b
...@@ -36,7 +36,6 @@ from zope.interface import implementer ...@@ -36,7 +36,6 @@ from zope.interface import implementer
from filter import Filter from filter import Filter
from os import environ, path from os import environ, path
from cloudooo.interfaces.mimemapper import IMimemapper from cloudooo.interfaces.mimemapper import IMimemapper
from types import InstanceType
import json import json
...@@ -68,23 +67,6 @@ class MimeMapper(object): ...@@ -68,23 +67,6 @@ class MimeMapper(object):
if k.startswith(document_type): if k.startswith(document_type):
return v 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): def isLoaded(self):
"""Verify if filters were loaded""" """Verify if filters were loaded"""
return self._loaded return self._loaded
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment