Back to index

moin  1.9.0~rc2
Public Member Functions | Private Attributes
MoinMoin.support.xappy.replaylog.LoggedProxy Class Reference

List of all members.

Public Member Functions

def __init__
def __getattribute__
def __iter__
def __len__
def __repr__
def __str__

Private Attributes

 __obj

Detailed Description

A proxy for a xapian object, which logs all calls made on the object.

Definition at line 328 of file replaylog.py.


Constructor & Destructor Documentation

Definition at line 332 of file replaylog.py.

00332 
00333     def __init__(self, obj):
00334         self.__obj = obj


Member Function Documentation

Definition at line 335 of file replaylog.py.

00335 
00336     def __getattribute__(self, name):
00337         obj = object.__getattribute__(self, '_LoggedProxy__obj')
00338         if name == '__obj':
00339             return obj
00340         real = getattr(obj, name)
00341         if not isinstance(real, types.MethodType):
00342             return real
00343         return LoggedProxyMethod(real, self)

Definition at line 344 of file replaylog.py.

00344 
00345     def __iter__(self):
00346         obj = object.__getattribute__(self, '_LoggedProxy__obj')
00347         return obj.__iter__()

Definition at line 348 of file replaylog.py.

00348 
00349     def __len__(self):
00350         obj = object.__getattribute__(self, '_LoggedProxy__obj')
00351         return obj.__len__()

Definition at line 352 of file replaylog.py.

00352 
00353     def __repr__(self):
00354         obj = object.__getattribute__(self, '_LoggedProxy__obj')
00355         return '<LoggedProxy of %s >' % obj.__repr__()

Definition at line 356 of file replaylog.py.

00356 
00357     def __str__(self):
00358         obj = object.__getattribute__(self, '_LoggedProxy__obj')
00359         return obj.__str__()


Member Data Documentation

Definition at line 333 of file replaylog.py.


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