add extra recipe argument to YieldFilter __call__ method

This commit is contained in:
Jeremy Carbaugh 2009-06-30 15:50:40 -04:00
parent 86b819bd11
commit 36a1b5ec67

View File

@ -55,7 +55,8 @@ class YieldFilter(Filter):
def __init__(self):
super(YieldFilter, self).__init__()
def __call__(self, source):
def __call__(self, recipe, source):
self._recipe = recipe
for record in source:
for result in self.process_record(record):
yield result