ATLAS Offline Software
Loading...
Searching...
No Matches
python.ConfigBlock.BlockNameProcessorMeta Class Reference
Inheritance diagram for python.ConfigBlock.BlockNameProcessorMeta:
Collaboration diagram for python.ConfigBlock.BlockNameProcessorMeta:

Public Member Functions

 __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 49 of file ConfigBlock.py.

Member Function Documentation

◆ __new__()

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

Definition at line 53 of file ConfigBlock.py.

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

The documentation for this class was generated from the following file: