Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
tracer_demo.Tracer Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __str__
def __getattr__
def __setattr__

Detailed Description

Definition at line 63 of file tracer_demo.py.


Constructor & Destructor Documentation

def tracer_demo.Tracer.__init__ (   self,
  ob 
)

Definition at line 64 of file tracer_demo.py.

00064 
00065     def __init__(self, ob):
        self.__dict__['_ob'] = ob

Member Function Documentation

def tracer_demo.Tracer.__getattr__ (   self,
  attr 
)

Definition at line 70 of file tracer_demo.py.

00070 
00071     def __getattr__(self, attr):
00072         ret = getattr(self._ob, attr) # Attribute error just goes up
00073         if callable(ret):
00074             return TracerDelegate(ret)
00075         else:
00076             if not attr.startswith("_com_") and not attr.startswith("_reg_"):
00077                 getters[attr] = getters.setdefault(attr,0) + 1
            return ret

Definition at line 66 of file tracer_demo.py.

00066 
00067     def __repr__(self):
        return "<Tracer around %r>" % (self._ob,)

Here is the caller graph for this function:

def tracer_demo.Tracer.__setattr__ (   self,
  attr,
  val 
)

Definition at line 78 of file tracer_demo.py.

00078 
00079     def __setattr__(self, attr, val):
00080         if self.__dict__.has_key(attr):
00081             self.__dict__[attr] = val
00082             return
00083         setters[attr] = setters.setdefault(attr,0) + 1
00084         setattr(self._ob, attr, val)
00085 
00086 # Installed as a global XPCOM function that if exists, will be called
# to wrap each XPCOM object created.

Definition at line 68 of file tracer_demo.py.

00068 
00069     def __str__(self):
        return "<Tracer around %r>" % (self._ob,)

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