Ejemplo n.º 1
0
Archivo: __init__.py Proyecto: dax/jcl
 def filter(self, stanza, lang_class):
     """
     Filter account to be processed by the handler
     return all accounts. DB connection might already be opened.
     """
     accounts = account.get_all_accounts()
     return accounts
Ejemplo n.º 2
0
Archivo: feeder.py Proyecto: dax/jmc
 def filter(self, stanza, lang_class):
     """
     Return only email account type to check mail from
     """
     accounts = account.get_all_accounts(account_class=MailAccount)
     return accounts