Package twisted :: Package manhole :: Module explorer :: Class _WatchMonkey
[show private | hide private]
[frames | no frames]

Class _WatchMonkey


I hang on a method and tell you what I see.

TODO: Aya! Now I just do browseObject all the time, but I could tell you what got called with what when and returning what.
Method Summary
  __init__(self, instance)
Make a monkey to hang on this instance object.
  __call__(self, instance, *a, **kw)
Pretend to be the method I replaced, and ring the bell.
  install(self, methodIdentifier)
Install myself on my instance in place of this method.
  uninstall(self)
Remove myself from this instance and restore the original method.

Class Variable Summary
None oldMethod

Method Details

__init__(self, instance)
(Constructor)

Make a monkey to hang on this instance object.

__call__(self, instance, *a, **kw)
(Call operator)

Pretend to be the method I replaced, and ring the bell.

install(self, methodIdentifier)

Install myself on my instance in place of this method.

uninstall(self)

Remove myself from this instance and restore the original method.

(I hope.)

Class Variable Details

oldMethod

Type:
None
Value:
None                                                                   

Generated by Epydoc 1.1 on Sat Feb 15 21:19:36 2003 http://epydoc.sf.net