示例#1
0
    def __init__(self):
        db = mongodb
        DBUtil.__init__(self, db)
        self.collection = db.Reports

        # indexes
        self.collection.create_index([('name', ASCENDING)], unique=True)
示例#2
0
 def __init__(self, db):
     '''
        General description:
         This function initializes the database variables and \
         index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.Emails
 def __init__(self, db):
     '''                                                            
       General description:                                           
       This function initializes the database variables and           
       index to refer in functions.                                   
     '''
     DBUtil.__init__(self, db)
     self.collection = db.ContributionGitPushLogs
示例#4
0
 def __init__(self, db):
     '''
         General description:
         This function initializes the database variables and \
         index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.Sync
     self.system_details_db = SystemDetails.SystemDetails(db)
示例#5
0
 def __init__(self, db):
     '''
        General description:
         This function initializes the database variables and \
         index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.Config
     self.passHelper = PasswordHelper.PasswordHelper(key)
示例#6
0
 def __init__(self, db):
     '''
         General description:
         This function initializes the database variables and \
         index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.Plugins
     # indexes
     self.collection.create_index([('name', ASCENDING)], unique=True)
示例#7
0
 def __init__(self, db):
     '''                                                                
      General description :                                           
      This function initializes the database variables and \          
      index to refer in functions.                                    
     '''
     DBUtil.__init__(self, db)
     self.collection = db.DeploymentFields
     # indexes
     self.collection.create_index(
         [('parent_entity_id', ASCENDING)], unique=True)
示例#8
0
 def __init__(self, db):
     DBUtil.__init__(self, db)
     self.collection = db.Machine
     self.passHelper = PasswordHelper.PasswordHelper(key)
     self.userdb = Users.Users(db)
     self.roleDb = Role.Role(db)
     self.tagDB = Tags.Tags()
     # indexes
     self.collection.create_index([('username', ASCENDING),
                                   ('host', ASCENDING)],
                                  unique=True)
示例#9
0
 def __init__(self, db):
     '''
        General description:
        This function initializes the database variables and \
        index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.MachineGroups
     self.machineDB = Machine.Machine(db)
     # indexes
     self.collection.create_index([('group_name', ASCENDING)], unique=True)
    def __init__(self):
        '''
           General description:
            This function initializes the database variables and \
            index to refer in functions.
        '''
        db = mongodb
        DBUtil.__init__(self, db)
        self.collection = db.DeploymentUnitApprovalStatus

        # indexes
        self.collection.create_index([('name', ASCENDING)], unique=True)
示例#11
0
 def __init__(self, db):
     '''
     General description:
     This function initializes the database variables and \
     index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.Collection = db.ToolInstallation
     # indexes
     self.Collection.create_index([('version_id', ASCENDING),
                                   ('machine_id', ASCENDING)],
                                  unique=True)
示例#12
0
 def __init__(self):
     '''
        General description:
         This function initializes the database variables and \
         index to refer in functions.
     '''
     db = mongodb
     DBUtil.__init__(self, db)
     self.collection = db.Repository
     self.passHelper = PasswordHelper.PasswordHelper(key)
     # indexes
     self.collection.create_index([('name', ASCENDING)], unique=True)
示例#13
0
 def __init__(self, db):
     '''
     General description:
     This function initializes the database variables and \
     index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.Tool
     self.versionsDB = Versions.Versions(db)
     self.tagDB = Tags.Tags()
     # indexes
     self.collection.create_index([('name', ASCENDING)], unique=True)
     self.collection.create_index([('tag', ASCENDING)], unique=False)
示例#14
0
 def __init__(self, db):
     '''
        General description:
         This function initializes the database variables and \
         index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.DeploymentRequest
     self.machineDB = Machine.Machine(db)
     self.versionsDB = Versions.Versions(db)
     self.toolDB = Tool.Tool(db)
     self.passHelper = PasswordHelper.PasswordHelper(key)
     self.statedb =  State.State(db)
示例#15
0
 def __init__(self, db):
     '''
     General description:
     This function initializes the database variables and \
     index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.SystemDetails
     self.configDb = Config.Config(mongodb)
     # indexes
     # self.collection.create_index([('version_id', ASCENDING)], unique=False)
     self.collection.create_index([('ip', ASCENDING)], unique=True)
     self.collection.create_index([('hostname', ASCENDING)], unique=True)
示例#16
0
 def __init__(self, db):
     '''
         General description:
         This function initializes the database variables and \
         index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.PermissionGroup
     self.permissiondb = Permissions.Permissions(db)
     self.routesb = Routes.Routes(db)
     # indexes
     self.collection.create_index(
         [('groupname', ASCENDING)],
         unique=True,
     )
示例#17
0
 def __init__(self, db):
     '''
     General description:
     This function initializes the database variables and \
     index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.UserFavoriteMachine
     self.machineTypeDb = MachineType.MachineType(db)
     self.machineDB = Machine.Machine(db)
     self.userDB = Users.Users(db)
     # indexes
     self.collection.create_index([('user_id', ASCENDING),
                                   ('machine_id', ASCENDING)],
                                  unique=True)
示例#18
0
 def __init__(self, db):
     '''                                                                    
      General description :                                               
      This function initializes the database variables and \              
      index to refer in functions.                                        
     '''
     DBUtil.__init__(self, db)
     self.collection = db.DeploymentRequestGroup
     self.deploymentRequestDb = DeploymentRequest.DeploymentRequest(db)
     self.machineDB = Machine.Machine(db)
     self.versionsDB = Versions.Versions(db)
     self.toolDB = Tool.Tool(db)
     self.deploymentUnitDB = DeploymentUnit.DeploymentUnit()
     self.deploymentRequestDbCollection = db.DeploymentRequest
     self.statedb = State.State(db)
示例#19
0
 def __init__(self, db):
     '''
     General description:
     This function initializes the database variables and \
     index to refer in functions.
     '''
     DBUtil.__init__(self, db)
     self.collection = db.State
     self.deploymentunitapprovalstatusdb = DeploymentUnitApprovalStatus.DeploymentUnitApprovalStatus(
     )
     self.DeploymentFieldsdb = DeploymentFields.DeploymentFields(db)
     self.buildDb = Build.Build()
     # indexes
     self.collection.create_index([('name', ASCENDING),
                                   ('parent_entity_id', ASCENDING)],
                                  unique=True)
示例#20
0
    def __init__(self, db):
        '''
        General description:
        This function initializes the database variables and \
        index to refer in functions.
        '''
        DBUtil.__init__(self, db)
        self.collection = db.Users
        self.roledb = Role.Role(db)
        self.permissiondb = Permissions.Permissions(db)
        self.account_db = Accounts.Accounts()
        self.pass_helper = PasswordHelper.PasswordHelper(key)

        # indexes
        self.collection.create_index(
            [('user', ASCENDING)],
            unique=True,
        )
示例#21
0
    def __init__(self, db):
        '''
        General description:
        This function initializes the database variables and \
        index to refer in functions.
        '''
        DBUtil.__init__(self, db)
        self.collection = db.Versions
        self.deploymentFieldsDB = DeploymentFields.DeploymentFields(db)
        self.buildDB = Build.Build()
        self.documentsDB = Documents.Documents(db)
        self.mediaFilesDB = MediaFiles.MediaFiles(db)

        # indexes
        self.collection.create_index([('tool_id', ASCENDING),
                                      ('version_name', ASCENDING),
                                      ('version_number', ASCENDING)],
                                     unique=True)
示例#22
0
 def __init__(self):
     '''
        General description:
        This function initializes the database variables and \
        index to refer in functions.
     '''
     db = mongodb
     DBUtil.__init__(self, db)
     self.collection = db.DeploymentUnit
     self.deploymentUnitApprovalStatusDB = DeploymentUnitApprovalStatus.DeploymentUnitApprovalStatus(
     )
     self.tagDB = Tags.Tags()
     self.buildDB = Build.Build()
     self.deploymentFieldsDB = DeploymentFields.DeploymentFields(db)
     self.deploymentUnitTypeDB = DeploymentUnitType.DeploymentUnitType()
     self.statedb = State.State(db)
     # self.deploymentUnitSetDB = DeploymentUnitSet.DeploymentUnitSet()
     # indexes
     self.collection.create_index([('name', ASCENDING)], unique=True)
示例#23
0
 def __init__(self):
     db = mongodb
     DBUtil.__init__(self, db)
     self.collection = db.SavedExports