Exemplo n.º 1
0
 def getAppliInfo(self, user, appname):
     servers = utils.extract_user_servers(user)
     #Retrieving applilist for any server controlled by kermit
     applications = []
     if servers:
         for server in servers:
             environment = self.extract_environment_level(server)  
             appli = extract_appli_details(server.hostname, environment, appname)
             if appli:
                 applications.extend(appli)
     return applications
Exemplo n.º 2
0
 def getAppliInfo(self, user, appname):
     servers = utils.extract_user_servers(user)
     #Retrieving applilist for any server controlled by kermit
     applications = []
     if servers:
         for server in servers:
             environment = self.extract_environment_level(server)
             appli = extract_appli_details(server.hostname, environment,
                                           appname)
             if appli:
                 applications.extend(appli)
     return applications
Exemplo n.º 3
0
 def getAppliInfo(self, user, appname):
     servers = utils.extract_user_servers(user)
     if user != 'fooUser':
         if not user.is_superuser:
             servers = get_objects_for_user(user, 'use_server', Server)
     #Retrieving applilist for any server controlled by kermit
     applications = []
     for server in servers:
         environment = self.extract_environment_level(server)  
         appli = extract_appli_details(server.hostname, environment, appname)
         if appli:
             applications.extend(appli)
     return applications
Exemplo n.º 4
0
 def getAppliInfo(self, user, appname):
     servers = utils.extract_user_servers(user)
     if user != 'fooUser':
         if not user.is_superuser:
             servers = get_objects_for_user(user, 'use_server', Server)
     #Retrieving applilist for any server controlled by kermit
     applications = []
     for server in servers:
         environment = self.extract_environment_level(server)
         appli = extract_appli_details(server.hostname, environment,
                                       appname)
         if appli:
             applications.extend(appli)
     return applications