Adapt to the change from dmlib to nexlibs

parent 72ad4c64
...@@ -6,8 +6,8 @@ from libopenzwave import PyManager ...@@ -6,8 +6,8 @@ from libopenzwave import PyManager
from twisted.internet import epollreactor from twisted.internet import epollreactor
epollreactor.install() epollreactor.install()
from twisted.internet import reactor from twisted.internet import reactor
from dmlib.daemonizer import Daemonizer from nexlibs.daemonizer import Daemonizer
from dmlib.utils.genutils import configFile from nexlibs.utils.genutils import configFile
import logging, time, sys, os import logging, time, sys, os
from logging import handlers as loghandlers from logging import handlers as loghandlers
from corepost import Response, NotFoundException, AlreadyExistsException from corepost import Response, NotFoundException, AlreadyExistsException
......
...@@ -34,7 +34,7 @@ from domotika.clouds.google import speech ...@@ -34,7 +34,7 @@ from domotika.clouds.google import speech
from domotika.clouds.responsivevoice import tts from domotika.clouds.responsivevoice import tts
import tempfile import tempfile
from txscheduling.cron import CronSchedule, parseCronLine from txscheduling.cron import CronSchedule, parseCronLine
from dmlib.utils import genutils from nexlibs.utils import genutils
log = logging.getLogger( 'FastAGI' ) log = logging.getLogger( 'FastAGI' )
......
...@@ -25,15 +25,14 @@ import logging ...@@ -25,15 +25,14 @@ import logging
from dmlib import constants as C from dmlib import constants as C
from zope.interface import implements from zope.interface import implements
import iboards import iboards
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
from twisted.internet import defer from twisted.internet import defer
from dmlib import constants as C
from twisted.web import microdom as xml from twisted.web import microdom as xml
from domotika.lang import lang from domotika.lang import lang
from iotype import BoardAnalog, BoardInput, BoardOutput, BoardRelay from iotype import BoardAnalog, BoardInput, BoardOutput, BoardRelay
from twisted.web import error from twisted.web import error
from dmlib.utils.pwgen import GeneratePwd from nexlibs.utils.pwgen import GeneratePwd
from dmlib.utils import genutils from nexlibs.utils import genutils
from twisted.internet import reactor from twisted.internet import reactor
from domotika.db import dmdb from domotika.db import dmdb
import urllib import urllib
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
############################################################################## ##############################################################################
import urllib import urllib
from dmlib.utils import webutils as web from nexlibs.utils import webutils as web
from twisted.internet import reactor from twisted.internet import reactor
import tempfile import tempfile
from twisted.internet import defer from twisted.internet import defer
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
############################################################################## ##############################################################################
import urllib import urllib
from dmlib.utils import webutils as web from nexlibs.utils import webutils as web
from twisted.internet import reactor from twisted.internet import reactor
import tempfile import tempfile
from twisted.internet import defer from twisted.internet import defer
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
############################################################################## ##############################################################################
from twisted.internet import defer, reactor, task from twisted.internet import defer, reactor, task
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
import json import json
import logging import logging
from domotika.db import dmdb from domotika.db import dmdb
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
############################################################################## ##############################################################################
import urllib import urllib
from dmlib.utils import webutils as web from nexlibs.utils import webutils as web
from twisted.internet import reactor from twisted.internet import reactor
import tempfile import tempfile
from twisted.internet import defer from twisted.internet import defer
......
...@@ -29,7 +29,7 @@ import time ...@@ -29,7 +29,7 @@ import time
from twisted.internet import defer, reactor from twisted.internet import defer, reactor
import logging import logging
from dmlib import dmdomain from dmlib import dmdomain
from dmlib.utils import genutils from nexlibs.utils import genutils
from MySQLdb.converters import conversions from MySQLdb.converters import conversions
from twistar.dbconfig.base import InteractionBase from twistar.dbconfig.base import InteractionBase
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
from twisted.application import service from twisted.application import service
from twisted.internet import defer, reactor, task, protocol, threads from twisted.internet import defer, reactor, task, protocol, threads
from dmlib.utils.genutils import configFile, FakeObject, ConvenienceCaller from nexlibs.utils.genutils import configFile, FakeObject, ConvenienceCaller
from dmlib.utils import genutils from nexlibs.utils import genutils
from lang import lang from lang import lang
import logging, sys, os import logging, sys, os
from web import web from web import web
...@@ -35,7 +35,7 @@ from web import proxy, mediaproxy ...@@ -35,7 +35,7 @@ from web import proxy, mediaproxy
from twisted.web import microdom as xml from twisted.web import microdom as xml
from singleton import clients, sequences, crontabs, statuses, messengerlinks from singleton import clients, sequences, crontabs, statuses, messengerlinks
from singleton import oldboards as oldb from singleton import oldboards as oldb
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
from dmlib import constants as C from dmlib import constants as C
from db import dmdb from db import dmdb
import time import time
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
import logging import logging
log = logging.getLogger( 'Core' ) log = logging.getLogger( 'Core' )
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
class EventListenersRegistry(Singleton): class EventListenersRegistry(Singleton):
registry={} registry={}
......
...@@ -29,16 +29,16 @@ import sys ...@@ -29,16 +29,16 @@ import sys
from socket import SOL_SOCKET, SO_BROADCAST, AF_INET, SOCK_DGRAM, socket from socket import SOL_SOCKET, SO_BROADCAST, AF_INET, SOCK_DGRAM, socket
import IN import IN
import struct import struct
from dmlib.dmcrypt import AES256 from nexlibs.dmcrypt import AES256
from dmlib import dmcrypt from nexlibs import nexcrypt as dmcrypt
import logging import logging
from dmlib import constants as C from dmlib import constants as C
from dmlib import ikaprotocol as proto from dmlib import ikaprotocol as proto
from dmlib.utils.genutils import revlist, isTrue from nexlibs.utils.genutils import revlist, isTrue
import copy import copy
from singleton import oldboards as oldb from singleton import oldboards as oldb
from singleton import Singleton from singleton import Singleton
from dmlib.utils import pwgen from nexlibs.utils import pwgen
log = logging.getLogger( 'IKAPServer' ) log = logging.getLogger( 'IKAPServer' )
......
...@@ -27,7 +27,7 @@ from domotika.db import dmdb ...@@ -27,7 +27,7 @@ from domotika.db import dmdb
from domotika.lang import lang from domotika.lang import lang
from zope.interface import implements from zope.interface import implements
from twisted.plugin import IPlugin from twisted.plugin import IPlugin
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
from twisted.internet import defer from twisted.internet import defer
from dmlib import constants as C from dmlib import constants as C
import logging import logging
......
...@@ -27,7 +27,7 @@ from domotika.db import dmdb ...@@ -27,7 +27,7 @@ from domotika.db import dmdb
from domotika.lang import lang from domotika.lang import lang
from zope.interface import implements from zope.interface import implements
from twisted.plugin import IPlugin from twisted.plugin import IPlugin
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
from twisted.internet import defer from twisted.internet import defer
from dmlib import constants as C from dmlib import constants as C
import logging import logging
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
############################################################################## ##############################################################################
from dmlib.utils import genutils from nexlibs.utils import genutils
from twisted.internet import defer from twisted.internet import defer
from db import dmdb from db import dmdb
from dmlib import dmdomain from dmlib import dmdomain
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
from twisted.internet import reactor, protocol, task from twisted.internet import reactor, protocol, task
from db import dmdb as dmdb from db import dmdb as dmdb
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
import time import time
import os, sys, logging, traceback import os, sys, logging, traceback
import base64 import base64
......
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import * from nexlibs.singleton import *
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
import time import time
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
import time import time
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
class MediaClientsRegister(Singleton): class MediaClientsRegister(Singleton):
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
class MediaProducersRegister(Singleton): class MediaProducersRegister(Singleton):
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
class OldBoardsRegister(Singleton): class OldBoardsRegister(Singleton):
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
import time import time
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
############################################################################## ##############################################################################
from dmlib.singleton import Singleton from nexlibs.singleton import Singleton
import time import time
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
############################################################################## ##############################################################################
from coherence.base import Coherence from coherence.base import Coherence
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
import logging import logging
from twisted.web import microdom as xml from twisted.web import microdom as xml
#import traceback #import traceback
......
...@@ -39,7 +39,7 @@ except: ...@@ -39,7 +39,7 @@ except:
import md5 import md5
import sha1 import sha1
from dmlib.utils import genutils from nexlibs.utils import genutils
log = logging.getLogger("Webgui") log = logging.getLogger("Webgui")
......
...@@ -29,7 +29,7 @@ from corepost.web import RESTResource, route, Http ...@@ -29,7 +29,7 @@ from corepost.web import RESTResource, route, Http
from corepost.convert import convertToJson from corepost.convert import convertToJson
from corepost.enums import MediaType, HttpHeader from corepost.enums import MediaType, HttpHeader
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
import hashlib import hashlib
import hmac import hmac
......
...@@ -35,7 +35,7 @@ except: ...@@ -35,7 +35,7 @@ except:
import md5 import md5
import sha1 import sha1
import logging import logging
from dmlib.utils.blockingdefer import blockingDeferred from nexlibs.utils.blockingdefer import blockingDeferred
import cgi, logging import cgi, logging
from zope.interface import implements from zope.interface import implements
from twisted.cred import portal, checkers, credentials from twisted.cred import portal, checkers, credentials
......
...@@ -31,7 +31,7 @@ from nevow import inevow, rend, tags, loaders, flat, athena, stan, guard ...@@ -31,7 +31,7 @@ from nevow import inevow, rend, tags, loaders, flat, athena, stan, guard
from twisted.web import resource, static from twisted.web import resource, static
from common import permissionDenied from common import permissionDenied
from twisted.web.server import NOT_DONE_YET from twisted.web.server import NOT_DONE_YET
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
import urllib import urllib
from urlparse import urlsplit, urlparse from urlparse import urlsplit, urlparse
from urllib import quote as urlquote from urllib import quote as urlquote
......
...@@ -30,7 +30,7 @@ from twisted.web import resource, static ...@@ -30,7 +30,7 @@ from twisted.web import resource, static
from common import permissionDenied from common import permissionDenied
from twisted.web.server import NOT_DONE_YET from twisted.web.server import NOT_DONE_YET
from domotika.db import dmdb as dmdb from domotika.db import dmdb as dmdb
from dmlib.utils import webutils as wu from nexlibs.utils import webutils as wu
import urllib import urllib
from urlparse import urlsplit, urlparse from urlparse import urlsplit, urlparse
from urllib import quote as urlquote from urllib import quote as urlquote
......
...@@ -35,7 +35,7 @@ import yaml ...@@ -35,7 +35,7 @@ import yaml
from functools import wraps, partial from functools import wraps, partial
from twisted.web.http import Request from twisted.web.http import Request
from dmlib.utils import genutils from nexlibs.utils import genutils
import logging, os, sys import logging, os, sys
......
...@@ -27,7 +27,7 @@ from twisted.web import server ...@@ -27,7 +27,7 @@ from twisted.web import server
from zope.interface import implements from zope.interface import implements
from corepost.convert import convertForSerialization, generateXml, convertToJson from corepost.convert import convertForSerialization, generateXml, convertToJson
import logging, time import logging, time
from dmlib.utils import genutils from nexlibs.utils import genutils
log = logging.getLogger( 'Webgui' ) log = logging.getLogger( 'Webgui' )
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
############################################################################## ##############################################################################
from twisted.web import server, resource, static, client from twisted.web import server, resource, static, client
from dmlib import dmcrypt from nexlibs import nexcrypt as dmcrypt
try: try:
from twisted.web import http from twisted.web import http
except ImportError: except ImportError:
...@@ -40,8 +40,8 @@ except: ...@@ -40,8 +40,8 @@ except:
import sha1 import sha1
import urllib import urllib
import logging import logging
from dmlib.utils.blockingdefer import blockingDeferred from nexlibs.utils.blockingdefer import blockingDeferred
from dmlib.utils import genutils from nexlibs.utils import genutils
import cgi, logging import cgi, logging
from zope.interface import implements from zope.interface import implements
from twisted.cred import portal, checkers, credentials from twisted.cred import portal, checkers, credentials
...@@ -55,7 +55,7 @@ from twisted.internet import defer ...@@ -55,7 +55,7 @@ from twisted.internet import defer
from nevow import appserver from nevow import appserver
import time import time
import auth import auth
from dmlib.utils.genutils import configFile from nexlibs.utils.genutils import configFile
import phpserialize import phpserialize
log = logging.getLogger( 'Webgui' ) log = logging.getLogger( 'Webgui' )
......
...@@ -30,9 +30,9 @@ from twisted.internet import reactor, ssl, protocol, endpoints ...@@ -30,9 +30,9 @@ from twisted.internet import reactor, ssl, protocol, endpoints
from twisted.application import service, internet, app, reactors from twisted.application import service, internet, app, reactors
from twisted.web import server #, soap from twisted.web import server #, soap
import logging, time, sys, os import logging, time, sys, os
from dmlib.daemonizer import Daemonizer from nexlibs.daemonizer import Daemonizer
from domotika import domotika from domotika import domotika
from dmlib.utils.genutils import configFile from nexlibs.utils.genutils import configFile
from logging import handlers as loghandlers from logging import handlers as loghandlers
try: try:
......
...@@ -26,7 +26,7 @@ from twisted.internet.protocol import Factory ...@@ -26,7 +26,7 @@ from twisted.internet.protocol import Factory
from twisted.internet.endpoints import TCP4ServerEndpoint, TCP4ClientEndpoint from twisted.internet.endpoints import TCP4ServerEndpoint, TCP4ClientEndpoint
from domotika.plugins import BasePlugin from domotika.plugins import BasePlugin
import base64, os, sys import base64, os, sys
from dmlib.utils.genutils import configFile from nexlibs.utils.genutils import configFile
from domotika.db import dmdb from domotika.db import dmdb
from dmlib import dmdomain from dmlib import dmdomain
import time import time
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
from twisted.internet import reactor, stdio, task, defer from twisted.internet import reactor, stdio, task, defer
from domotika.plugins import BasePlugin from domotika.plugins import BasePlugin
import base64, os, sys import base64, os, sys
from dmlib.utils.genutils import configFile from nexlibs.utils.genutils import configFile
from domotika.db import dmdb from domotika.db import dmdb
from dmlib import dmdomain from dmlib import dmdomain
import time import time
......
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