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

Simplify and reorganise, Use util.util was overkill.

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