CMS 3D CMS Logo

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.

00572                           :
00573     #frame = inspect.stack()[level+1]
00574     frame = inspect.getframeinfo(inspect.currentframe(level+1))
00575     # not safe under old python versions
00576     #obj._filename = frame.filename
00577     #obj._lineNumber = frame.lineno
00578     obj._filename = frame[0]
00579     obj._lineNumber = frame[1]