FCConditionBasePlugin

Base class to give baseline for all the FCCondition plugins. It is important to note that in the FCConditionParser, the plugin is called for each and every lfn. This greatly simplifies the development of the plugin.

class DIRAC.Resources.Catalog.ConditionPlugins.FCConditionBasePlugin.FCConditionBasePlugin(conditions)

Bases: object

Base class to give baseline for all the FCCondition plugins. It is important to note that in the FCConditionParser, the plugin is called for each and every lfn. This greatly simplifies the development of the plugin.

__init__(conditions)

Gives the parameter of the evaluation to be done. The expression is defined as

<PluginName> = <Plugin params>

conditions is the string <Plugin params> They have to be interpreted

eval(**kwargs)

eval evaluates param of the plugins against all the info given and returns True or False.