def getSections( self, sectionPath, listOrdered = True ):
   gRefresher.refreshConfigurationIfNeeded()
   sectionList = gConfigurationData.getSectionsFromCFG( sectionPath, ordered = listOrdered )
   if type( sectionList ) == types.ListType:
     return S_OK( sectionList )
   else:
     return S_ERROR( "Path %s does not exist or it's not a section" % sectionPath )
示例#2
0
 def getSections( self, sectionPath, listOrdered = True ):
   gRefresher.refreshConfigurationIfNeeded()
   sectionList = gConfigurationData.getSectionsFromCFG( sectionPath, ordered = listOrdered )
   if type( sectionList ) == types.ListType:
     return S_OK( sectionList )
   else:
     return S_ERROR( "Path %s does not exist or it's not a section" % sectionPath )
示例#3
0
    def getSections(self, sectionPath, listOrdered=True):
        """ Get configuration sections

        :param str sectionPath: section path
        :param bool listOrdered: ordered

        :return: S_OK(list)/S_ERROR()
    """
        gRefresher.refreshConfigurationIfNeeded()
        sectionList = gConfigurationData.getSectionsFromCFG(
            sectionPath, ordered=listOrdered)
        if isinstance(sectionList, list):
            return S_OK(sectionList)
        else:
            return S_ERROR("Path %s does not exist or it's not a section" %
                           sectionPath)
示例#4
0
 def getSections(self, sectionPath):
     return gConfigurationData.getSectionsFromCFG(sectionPath, self.cfgData)
示例#5
0
 def getSections( self, sectionPath ):
   return gConfigurationData.getSectionsFromCFG( sectionPath, self.cfgData )