Done with models split (now needs testing to ensure that is at least as was before)

This commit is contained in:
Adolfo Gómez 2014-04-24 08:03:12 +00:00
parent 3d8fa98376
commit 78d0baf4af
23 changed files with 52 additions and 19 deletions

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.core.Environment import Environment
from uds.core.util import log
@ -45,6 +47,7 @@ import logging
logger = logging.getLogger(__name__)
class Authenticator(models.Model):
'''
This class represents an Authenticator inside the platform.

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.models.Util import getSqlDatetime
@ -42,7 +44,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class Cache(models.Model):
'''

View File

@ -33,13 +33,14 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class Config(models.Model):
'''

View File

@ -33,14 +33,14 @@
from __future__ import unicode_literals
from django.db import models
__updated__ = '2014-04-24'
from django.db import models
import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class DelayedTask(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from django.db.models import signals
@ -46,6 +48,7 @@ import logging
logger = logging.getLogger(__name__)
class Group(models.Model):
'''
This class represents a group, associated with one authenticator

View File

@ -33,14 +33,14 @@
from __future__ import unicode_literals
from django.db import models
__updated__ = '2014-04-24'
from django.db import models
import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class Log(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from Transport import Transport
from uds.core.util import net
@ -41,6 +43,7 @@ import logging
logger = logging.getLogger(__name__)
class Network(models.Model):
'''
This model is used for keeping information of networks associated with transports (right now, just transports..)

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.core.Environment import Environment
from django.db import IntegrityError
@ -42,6 +44,7 @@ import logging
logger = logging.getLogger(__name__)
class OSManager(models.Model):
'''
An OS Manager represents a manager for responding requests for agents inside services.

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.core.Environment import Environment
from uds.core.util import log

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from django.db.models import signals
@ -46,7 +48,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class Scheduler(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from django.db.models import signals
from uds.core.Environment import Environment
@ -44,8 +46,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class Service(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from django.db.models import signals
from uds.core.Environment import Environment
@ -53,7 +55,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class DeployedService(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from django.db.models import signals
from uds.core.util.State import State
@ -47,7 +49,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class DeployedServicePublication(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.models.Util import NEVER_UNIX
@ -43,7 +45,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class StatsCounters(models.Model):
'''

View File

@ -33,13 +33,14 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class StatsEvents(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.core.db.LockingManager import LockingManager
@ -41,7 +43,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class Storage(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from django.db.models import signals
from uds.core.Environment import Environment
@ -42,6 +44,7 @@ import logging
logger = logging.getLogger(__name__)
class Transport(models.Model):
'''
A Transport represents a way of connecting the user with the service.

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.core.db.LockingManager import LockingManager
@ -40,7 +42,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class UniqueId(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.core.util import log
from django.db.models import signals
@ -45,6 +47,7 @@ import logging
logger = logging.getLogger(__name__)
class User(models.Model):
'''
This class represents a single user, associated with one authenticator

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from uds.models.User import User
@ -41,7 +43,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class UserPreference(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from django.db import models
from django.db.models import signals
from uds.core.Environment import Environment
@ -51,7 +53,6 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
class UserService(models.Model):
'''

View File

@ -33,6 +33,8 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
from datetime import datetime
from time import mktime

View File

@ -33,12 +33,12 @@
from __future__ import unicode_literals
__updated__ = '2014-04-24'
import logging
logger = logging.getLogger(__name__)
__updated__ = '2014-04-23'
# Utility
from uds.models.Util import getSqlDatetime