diff --git a/cloudooo/handler/ooo/handler.py b/cloudooo/handler/ooo/handler.py index 4a060a711a2a9ae3c4c2f8a7bf638ea00b4ff6a2..d2c69dda79a6c68e65cc9de17601b9b3a2b3a20c 100644 --- a/cloudooo/handler/ooo/handler.py +++ b/cloudooo/handler/ooo/handler.py @@ -43,7 +43,7 @@ from cloudooo.utils.utils import logger from psutil import pid_exists -class OOHandler: +class OOHandler(object): """OOHandler is used to access the one Document and OpenOffice. For each Document inputed is created on instance of this class to manipulate the document. This Document must be able to create and remove a temporary diff --git a/cloudooo/manager.py b/cloudooo/manager.py index 7a039f25e75368757d0a992237b431479c26acc9..9497af63263747c259d9f1b4a898a858b44d09b0 100644 --- a/cloudooo/manager.py +++ b/cloudooo/manager.py @@ -41,7 +41,7 @@ from cloudooo.interfaces.granulate import IImageGranulator from cloudooo.interfaces.granulate import ITextGranulator from fnmatch import fnmatch from cloudooo.interfaces.handler import IHandler -from types import ClassType +from types import TypeType def getHandlerObject(source_format, destination_format, mimetype_registry): @@ -60,7 +60,7 @@ def getHandlerObject(source_format, destination_format, mimetype_registry): if not name.endswith("Handler"): continue obj = getattr(handler, name) - if type(obj) == ClassType and IHandler.implementedBy(obj): + if type(obj) == TypeType and IHandler.implementedBy(obj): return obj raise ValueError("No Handler Enabled for this conversion")