Give component instead of stream to Feeder and Sender classes
darcs-hash:20061130215710-86b55-652c6ee7e4a69b67c7502db8db92d3cd0b0000ea.gz
This commit is contained in:
@@ -67,18 +67,18 @@ class FeederComponent(JCLComponent):
|
||||
|
||||
class Feeder(object):
|
||||
"""Abstract feeder class"""
|
||||
def __init__(self, stream = None):
|
||||
self.stream = stream
|
||||
def __init__(self, component = None):
|
||||
self.component = component
|
||||
|
||||
def feed(self, account):
|
||||
def feed(self, _account):
|
||||
"""Feed data for given account"""
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class Sender(object):
|
||||
"""Abstract sender class"""
|
||||
def __init__(self, stream = None):
|
||||
self.stream = stream
|
||||
def __init__(self, component = None):
|
||||
self.component = component
|
||||
|
||||
def send(self, to_account, data):
|
||||
"""Send data to given account"""
|
||||
|
||||
Reference in New Issue
Block a user