forked from shaba/openuds
Done with models split (now needs testing to ensure that is at least as was before)
This commit is contained in:
parent
3d8fa98376
commit
78d0baf4af
@ -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.
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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..)
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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.
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -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):
|
||||
'''
|
||||
|
@ -33,6 +33,8 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
__updated__ = '2014-04-24'
|
||||
|
||||
from datetime import datetime
|
||||
from time import mktime
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user