CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
Mixins Namespace Reference

Classes

class  _ConfigureComponent
 
class  _Labelable
 
class  _Parameterizable
 
class  _ParameterTypeBase
 
class  _SimpleParameterTypeBase
 
class  _TypedParameterizable
 
class  _Unlabelable
 
class  _ValidatingListBase
 
class  _ValidatingParameterListBase
 
class  PrintOptions
 
class  TestList
 
class  testMixins
 
class  UsingBlock
 

Functions

def saveOrigin
 

Function Documentation

def Mixins.saveOrigin (   obj,
  level 
)

Definition at line 609 of file Mixins.py.

Referenced by Modules.ESSource.__init__(), Modules._Module.__init__(), Mixins._TypedParameterizable.__init__(), and Mixins._TypedParameterizable.clone().

610 def saveOrigin(obj, level):
611  #frame = inspect.stack()[level+1]
612  frame = inspect.getframeinfo(inspect.currentframe(level+1))
613  # not safe under old python versions
614  #obj._filename = frame.filename
615  #obj._lineNumber = frame.lineno
616  obj._filename = frame[0]
617  obj._lineNumber = frame[1]
def saveOrigin
Definition: Mixins.py:609