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 )
Example #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 )
Example #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)
Example #4
0
 def getSections(self, sectionPath):
     return gConfigurationData.getSectionsFromCFG(sectionPath, self.cfgData)
Example #5
0
 def getSections( self, sectionPath ):
   return gConfigurationData.getSectionsFromCFG( sectionPath, self.cfgData )