ATLAS Offline Software
Public Member Functions | List of all members
python.ConfigBlock.BlockNameProcessorMeta Class Reference
Inheritance diagram for python.ConfigBlock.BlockNameProcessorMeta:
Collaboration diagram for python.ConfigBlock.BlockNameProcessorMeta:

Public Member Functions

def __new__ (cls, name, bases, dct)
 

Detailed Description

this meta class enforces the application of 'alphanumeric_block_names()' 
to 'instanceName()' and will be used in the main ConfigBlock class in order 
to propagate this rule also to all derived classes (the individual config blocks.

Definition at line 45 of file ConfigBlock.py.

Member Function Documentation

◆ __new__()

def python.ConfigBlock.BlockNameProcessorMeta.__new__ (   cls,
  name,
  bases,
  dct 
)

Definition at line 49 of file ConfigBlock.py.

49  def __new__(cls, name, bases, dct):
50  # Automatically apply alphanumeric-only decorator to 'instanceName()' method
51  if 'instanceName' in dct and callable(dct['instanceName']):
52  dct['instanceName'] = alphanumeric_block_name(dct['instanceName'])
53  return super().__new__(cls, name, bases, dct)
54 

The documentation for this class was generated from the following file:
python.ConfigBlock.alphanumeric_block_name
def alphanumeric_block_name(func)
Definition: ConfigBlock.py:30