Commit 52b5a4ef authored by Rafael Monnerat's avatar Rafael Monnerat

Simplify and reorganise, Use util.util was overkill.

parent 090824b3
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from zope.interface import implements from zope.interface import implements
from cloudooo.interfaces.handler import IHandler from cloudooo.interfaces.handler import IHandler
from cloudooo.file import File from cloudooo.file import File
from cloudooo.util.util import logger from cloudooo.util import logger
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
from tempfile import mktemp from tempfile import mktemp
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
from zope.interface import implements from zope.interface import implements
from cloudooo.interfaces.application import IApplication from cloudooo.interfaces.application import IApplication
from cloudooo.util.util import logger from cloudooo.util import logger
from cloudooo.handler.ooo.util.util import waitStopDaemon from cloudooo.handler.ooo.util import waitStopDaemon
from psutil import pid_exists, Process, AccessDenied from psutil import pid_exists, Process, AccessDenied
......
...@@ -34,8 +34,8 @@ from threading import Lock ...@@ -34,8 +34,8 @@ from threading import Lock
from zope.interface import implements from zope.interface import implements
from application import Application from application import Application
from cloudooo.interfaces.lockable import ILockable from cloudooo.interfaces.lockable import ILockable
from cloudooo.util.util import logger, convertStringToBool from cloudooo.util import logger, convertStringToBool
from cloudooo.handler.ooo.util.util import waitStartDaemon, \ from cloudooo.handler.ooo.util import waitStartDaemon, \
removeDirectory, waitStopDaemon, \ removeDirectory, waitStopDaemon, \
socketStatus socketStatus
......
...@@ -30,7 +30,7 @@ from zipfile import ZipFile ...@@ -30,7 +30,7 @@ from zipfile import ZipFile
from StringIO import StringIO from StringIO import StringIO
from lxml import etree from lxml import etree
from os import path from os import path
from cloudooo.util.util import logger from cloudooo.util import logger
from cloudooo.handler.ooo.document import OdfDocument from cloudooo.handler.ooo.document import OdfDocument
# URI Definitions. # URI Definitions.
......
...@@ -39,7 +39,7 @@ from cloudooo.handler.ooo.mimemapper import mimemapper ...@@ -39,7 +39,7 @@ from cloudooo.handler.ooo.mimemapper import mimemapper
from cloudooo.handler.ooo.document import FileSystemDocument from cloudooo.handler.ooo.document import FileSystemDocument
from cloudooo.handler.ooo.monitor.timeout import MonitorTimeout from cloudooo.handler.ooo.monitor.timeout import MonitorTimeout
from cloudooo.handler.ooo.monitor import monitor_sleeping_time from cloudooo.handler.ooo.monitor import monitor_sleeping_time
from cloudooo.util.util import logger from cloudooo.util import logger
from psutil import pid_exists from psutil import pid_exists
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from monitor import Monitor from monitor import Monitor
from multiprocessing import Process from multiprocessing import Process
import psutil import psutil
from cloudooo.util.util import logger from cloudooo.util import logger
from time import sleep from time import sleep
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
from monitor import Monitor from monitor import Monitor
from threading import Thread from threading import Thread
from cloudooo.util.util import logger from cloudooo.util import logger
from time import sleep from time import sleep
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
from monitor import Monitor from monitor import Monitor
from threading import Thread from threading import Thread
from cloudooo.util.util import logger from cloudooo.util import logger
from time import sleep, time from time import sleep, time
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from monitor import Monitor from monitor import Monitor
from multiprocessing import Process from multiprocessing import Process
from time import sleep from time import sleep
from cloudooo.util.util import logger from cloudooo.util import logger
class MonitorTimeout(Monitor, Process): class MonitorTimeout(Monitor, Process):
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
from cloudooo.tests.handlerTestCase import HandlerTestCase, make_suite from cloudooo.tests.handlerTestCase import HandlerTestCase, make_suite
from cloudooo.handler.ooo.application.openoffice import OpenOffice from cloudooo.handler.ooo.application.openoffice import OpenOffice
from cloudooo.handler.ooo.util.util import waitStopDaemon from cloudooo.handler.ooo.util import waitStopDaemon
OPENOFFICE = True OPENOFFICE = True
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
import unittest import unittest
import logging import logging
from cloudooo.util import util from cloudooo import util
from cloudooo.tests.handlerTestCase import make_suite from cloudooo.tests.handlerTestCase import make_suite
import mimetypes import mimetypes
......
...@@ -31,7 +31,7 @@ from errno import EADDRINUSE ...@@ -31,7 +31,7 @@ from errno import EADDRINUSE
from time import sleep from time import sleep
from os import remove from os import remove
from shutil import rmtree from shutil import rmtree
from cloudooo.util.util import logger from cloudooo.util import logger
def removeDirectory(path): def removeDirectory(path):
......
...@@ -32,7 +32,7 @@ from mimetypes import guess_all_extensions, guess_extension ...@@ -32,7 +32,7 @@ from mimetypes import guess_all_extensions, guess_extension
from base64 import encodestring, decodestring from base64 import encodestring, decodestring
from zope.interface import implements from zope.interface import implements
from interfaces.manager import IManager, IERP5Compatibility from interfaces.manager import IManager, IERP5Compatibility
from util.util import logger from cloudooo.util import logger
from cloudooo.interfaces.granulate import ITableGranulator from cloudooo.interfaces.granulate import ITableGranulator
from cloudooo.interfaces.granulate import IImageGranulator from cloudooo.interfaces.granulate import IImageGranulator
from cloudooo.interfaces.granulate import ITextGranulator from cloudooo.interfaces.granulate import ITextGranulator
......
...@@ -30,7 +30,7 @@ import gc ...@@ -30,7 +30,7 @@ import gc
from os import path, mkdir, environ from os import path, mkdir, environ
from cloudooo.wsgixmlrpcapplication import WSGIXMLRPCApplication from cloudooo.wsgixmlrpcapplication import WSGIXMLRPCApplication
from cloudooo.util import util from cloudooo import util
def application(global_config, **local_config): def application(global_config, **local_config):
......
...@@ -9,7 +9,7 @@ from ConfigParser import ConfigParser ...@@ -9,7 +9,7 @@ from ConfigParser import ConfigParser
from argparse import ArgumentParser from argparse import ArgumentParser
from os import chdir, path, environ, curdir, remove from os import chdir, path, environ, curdir, remove
import psutil import psutil
from cloudooo.handler.ooo.util.util import socketStatus from cloudooo.handler.ooo.util import socketStatus
from signal import SIGQUIT from signal import SIGQUIT
......
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