From e07f1ae068c23ff7e1b3c95ead0951d8a39f624e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 9 Jun 2015 16:32:26 +0200 Subject: [PATCH] Updated uds __init__ & added several fixes --- server/src/uds/__init__.py | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/server/src/uds/__init__.py b/server/src/uds/__init__.py index 2d4e8b970..da3de9fc0 100644 --- a/server/src/uds/__init__.py +++ b/server/src/uds/__init__.py @@ -32,17 +32,22 @@ ''' # Make sure that all services are "available" at service startup -import uds.services # to make sure that the packages are initialized at this point -import uds.auths # To make sure that the packages are initialized at this point -import uds.osmanagers # To make sure that packages are initialized at this point -import uds.transports # To make sure that packages are initialized at this point -import uds.dispatchers -import uds.models -import uds.plugins # To make sure plugins are loaded on memory -import uds.REST # To make sure REST initializes all what it needs +from . import services # to make sure that the packages are initialized at this point +from . import auths # To make sure that the packages are initialized at this point +from . import osmanagers # To make sure that packages are initialized at this point +from . import transports # To make sure that packages are initialized at this point +from . import dispatchers +from . import models +from . import plugins # To make sure plugins are loaded on memory +from . import REST # To make sure REST initializes all what it needs import uds.xmlrpc # To make actor live +from django.db.backends.signals import connection_created +from django.dispatch import receiver +import math + + from django.apps import AppConfig import logging @@ -50,6 +55,9 @@ import logging logger = logging.getLogger(__name__) +__updated__ = '2015-06-09' + + class UDSAppConfig(AppConfig): name = 'uds' verbose_name = 'Universal Desktop Services' @@ -63,10 +71,6 @@ default_app_config = 'uds.UDSAppConfig' # Sets up several sqlite non existing methods -from django.db.backends.signals import connection_created -from django.dispatch import receiver -import math - @receiver(connection_created) def extend_sqlite(connection=None, **kwargs):