better printout of methods

This commit is contained in:
Joe Shochet 2003-10-13 00:32:42 +00:00
parent c69cc5c96f
commit e996fb620f

View File

@ -1,7 +1,7 @@
from PythonUtil import * from PythonUtil import *
from DirectNotifyGlobal import * from DirectNotifyGlobal import *
import types
class Messenger: class Messenger:
@ -226,9 +226,11 @@ class Messenger:
acceptorDict = self.dict[event] acceptorDict = self.dict[event]
for object in acceptorDict.keys(): for object in acceptorDict.keys():
method, extraArgs, persistent = acceptorDict[object] method, extraArgs, persistent = acceptorDict[object]
className = object.__class__.__name__ if (type(method) == types.MethodType):
methodName = method.__name__ functionName = method.im_class.__name__ + '.' + method.im_func.__name__
str = str + className + '.' + methodName + ' ' else:
functionName = method.__name__
str = str + functionName + ' '
str = str + '\n' str = str + '\n'
return str return str