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

Public Member Functions

def lsetter (self, func)
 

Detailed Description

Build on the standard property to allow a property to be locked if the holding class has its _locked attribute set to True 

Definition at line 10 of file Utilities.py.

Member Function Documentation

◆ lsetter()

def python.Utilities.lproperty.lsetter (   self,
  func 
)

Definition at line 12 of file Utilities.py.

12  def lsetter(self, func):
13  def lockedfunc(self, v):
14  if self._locked:
15  raise Exception("Error "+func.__name__+" is locked. Either clone or unlock",self)
16  func(self,v)
17 
18  return self.setter(lockedfunc)
19 

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