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 564 of file Mixins.py.

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

565 def saveOrigin(obj, level):
566  #frame = inspect.stack()[level+1]
567  frame = inspect.getframeinfo(inspect.currentframe(level+1))
568  # not safe under old python versions
569  #obj._filename = frame.filename
570  #obj._lineNumber = frame.lineno
571  obj._filename = frame[0]
572  obj._lineNumber = frame[1]
def saveOrigin
Definition: Mixins.py:564