Multi account types support (part1)
Introduce factory function to instanciate new account class while registering. Need more work to list accounts types in disco darcs-hash:20070123185508-86b55-1797b5a17f14d9f271775bde3eff3189a61a919f.gz
This commit is contained in:
@@ -58,8 +58,8 @@ class FeederComponent(JCLComponent):
|
||||
def handle_tick(self):
|
||||
"""Implement main feed/send behavior"""
|
||||
self.db_connect()
|
||||
for _account in self.account_class.select(clauseTables = ["account"], \
|
||||
orderBy = "user_jid"):
|
||||
for _account in self.default_account_class.select(clauseTables = ["account"], \
|
||||
orderBy = "user_jid"):
|
||||
for data in self.feeder.feed(_account):
|
||||
self.sender.send(_account, data)
|
||||
self.db_disconnect()
|
||||
|
||||
Reference in New Issue
Block a user