cleared up a lot of boilerplate with lazy properties

This commit is contained in:
Rudi Grinberg 2012-07-13 11:28:16 -04:00
parent 309b071142
commit 120305f383
7 changed files with 53 additions and 34 deletions

View file

@ -10,6 +10,12 @@ class Handles(object):
@abc.abstractmethod
def handle(self, sender, event, *args, **kwargs): pass
# TODO : remove the code duplication between ReportHandler and
# ProblemFileHandler. Namely the part where both initialize pydispatch
# TODO : Investigate whether weak reffing in dispatcher.connect could possibly
# cause a memory leak
class ReportHandler(Handles):
__metaclass__ = abc.ABCMeta
def __init__(self, signal):