ClassAdLight

ClassAd Class - a light purely Python representation of the Condor ClassAd library.

class DIRAC.Core.Utilities.ClassAd.ClassAdLight.ClassAd(jdl)

Bases: object

__init__(jdl)

ClassAd constructor from a JDL string

asJDL()

Convert the JDL description into a string

deleteAttribute(name)

Delete a named attribute

getAttributeBool(name)

Get Boolean type attribute value

getAttributeFloat(name)

Get Float type attribute value

getAttributeInt(name)

Get Integer type attribute value

getAttributeString(name)

Get String type attribute value

getAttributes()

Get the list of all the attribute names

Returns:

list of names as strings

getDictionaryFromSubJDL(name)

Get a dictionary of the JDL attributes from a subsection

getListFromExpression(name)

Get a list of strings from a given expression

get_expression(name)

Get expression corresponding to a named attribute

insertAttributeBool(name, attribute)

Insert a named boolean attribute

insertAttributeInt(name, attribute)

Insert a named integer attribute

insertAttributeString(name, attribute)

Insert a named string attribute

insertAttributeVectorInt(name, attributelist)

Insert a named string list attribute

insertAttributeVectorString(name, attributelist)

Insert a named string list attribute

insertAttributeVectorStringList(name, attributelist)

Insert a named list of string lists

isAttributeList(name)

Check if the given attribute is of the List type

isOK()

Check the JDL validity - to be defined

lookupAttribute(name)

Check the presence of the given attribute

set_expression(name, attribute)

Insert a named expression attribute