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

Public Member Functions

 lsetter (self, func)

Protected Attributes

 _locked

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()

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

Member Data Documentation

◆ _locked

python.Utilities.lproperty._locked
protected

Definition at line 14 of file Utilities.py.


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