[Erp5-report] r43713 gabriel - in /erp5/trunk/utils/cloudooo/cloudooo: ./ handler/ooo/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 25 00:22:05 CET 2011
Author: gabriel
Date: Fri Feb 25 00:22:05 2011
New Revision: 43713
URL: http://svn.erp5.org?rev=43713&view=rev
Log:
fix import and put OOHandler to extend object
Modified:
erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/handler.py
erp5/trunk/utils/cloudooo/cloudooo/manager.py
Modified: erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/handler.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/handler.py?rev=43713&r1=43712&r2=43713&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/handler.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/handler.py [utf8] Fri Feb 25 00:22:05 2011
@@ -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
Modified: erp5/trunk/utils/cloudooo/cloudooo/manager.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/manager.py?rev=43713&r1=43712&r2=43713&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/manager.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/manager.py [utf8] Fri Feb 25 00:22:05 2011
@@ -41,7 +41,7 @@ from cloudooo.interfaces.granulate impor
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, dest
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")
More information about the Erp5-report
mailing list