début de pprint des événements.
[minwii.git] / src / app / event_pprinters.py
1 from events import eventNames
2 import sys
3 self = sys.modules[__name__]
4
5 def log_COLDOWN(e) :
6 return '%s' % e.column.tone.nom
7
8 def log_default(e) :
9 return str(e)
10
11 pprinters = {}
12 for type, name in eventNames.items() :
13 f = getattr(self, 'log_%s' % name, log_default)
14 pprinters[type] = f
15
16 __all__ = ('pprinters')