1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Updated uds __init__ & added several fixes

This commit is contained in:
Adolfo Gómez García 2015-06-09 16:32:26 +02:00
parent 119635862b
commit e07f1ae068

View File

@ -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):