comparison commitwatcher/event.py @ 40:97dfcdeb9a4e

stub
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 05 Nov 2013 02:10:58 -0800
parents 798b747b65d6
children
comparison
equal deleted inserted replaced
39:b04538e7f9f3 40:97dfcdeb9a4e
1 """ 1 """
2 event system for watching commits 2 event system for watching commits
3 """ 3 """
4 4
5 from abc import abstractmethod 5 __all__ = ['EventHandler', 'PathEventHandler']
6 6
7 class EventHandler(object): 7 class EventHandler(object):
8 """ABC for events""" 8 """ABC for events"""
9
10 def __init__(self, *notifiers):
11 self.notifiers = list(notifiers)
9 12
10 def match(self, commit): 13 def match(self, commit):
11 """does this event trigger the handler?""" 14 """does this event trigger the handler?"""
12 return True # abstractmethod 15 return True # abstractmethod
13 16