Example #1
0
    def __init__(self, widget, parent):
        """initialize the controller"""
        ControlerAbstract.__init__(self, widget, parent)
        self.__sites = {'Select a site': None}

        from DIRAC.DataManagementSystem.Utilities.DMSHelpers import DMSHelpers
        try:
            shortSiteNames = DMSHelpers().getShortSiteNames(withStorage=False,
                                                            tier=(0, 1))
        except AttributeError:
            shortSiteNames = {
                "CERN": "LCG.CERN.cern",
                "RAL": "LCG.RAL.uk",
                "IN2P3": "LCG.IN2P3.fr",
                "GRIDKA": "LCG.GRIDKA.de",
                "NIKHEF": "LCG.NIKHEF.nl",
                "CNAF": "LCG.CNAF.it",
                "RRCKI": "LCG.RRCKI.ru",
                "PIC": "LCG.PIC.es"
            }
        self.__sites.update(shortSiteNames)
Example #2
0
    def __init__(self, widget, parent):
        """initialize the main controller"""
        ControlerAbstract.__init__(self, widget, parent)
        self.__bkClient = LHCB_BKKDBClient()
        self.__diracAPI = Dirac()

        self.__fileName = ''
        self.__pathfilename = ''
        self.__SelectionDict = {}
        self.__SortDict = {}
        self.__StartItem = 0
        self.__Maxitems = 0
        self.__qualityFlags = {}
        retVal = self.__bkClient.getAvailableDataQuality()
        if not retVal['OK']:
            gLogger.error(retVal['Message'])
        else:
            for i in retVal['Value']:
                if i == "OK":
                    self.__qualityFlags[i] = True
                else:
                    self.__qualityFlags[i] = False
        #self.__progressBar = ProgressThread(False, 'Query on database...',self.getWidget())
        self.__bkClient.setDataQualities(self.__qualityFlags)
Example #3
0
 def __init__(self, widget, parent):
     """initialize the controller"""
     ControlerAbstract.__init__(self, widget, parent)
Example #4
0
 def __init__(self, widget, parent):
     """initialize the constructor"""
     ControlerAbstract.__init__(self, widget, parent)
     self.__selectedFiles = []
     self.__comands = []
     self.__current = 0
Example #5
0
 def __init__(self, widget, parent):
   """initialize the controller and the members of the class"""
   ControlerAbstract.__init__(self, widget, parent)
   self.__selectedFiles = []
   self.__dataSet = {}
Example #6
0
 def __init__(self, widget, parent):
     """initialize the controller"""
     ControlerAbstract.__init__(self, widget, parent)
     self.__pagesize = 0
     self.__option = None
     self.__offset = 0
 def __init__(self, widget, parent):
   """initialize the controller"""
   ControlerAbstract.__init__(self, widget, parent)
   self.__model = None
   self.__list = []
Example #8
0
 def __init__(self, widget, parent):
     """initialize the controller"""
     ControlerAbstract.__init__(self, widget, parent)
     self.__selectedFiles = []