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

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

572 def saveOrigin(obj, level):
573  #frame = inspect.stack()[level+1]
574  frame = inspect.getframeinfo(inspect.currentframe(level+1))
575  # not safe under old python versions
576  #obj._filename = frame.filename
577  #obj._lineNumber = frame.lineno
578  obj._filename = frame[0]
579  obj._lineNumber = frame[1]
def saveOrigin
Definition: Mixins.py:571