Esempio n. 1
0
 def import_content(self, only_new=True):
     from assembl.lib.config import get_config
     from pyramid.settings import asbool
     assert self.id
     config = get_config()
     if asbool(config.get('use_source_reader_for_mail', False)):
         super(AbstractMailbox, self).import_content(only_new)
     else:
         import_mails.delay(self.id, only_new)
Esempio n. 2
0
 def import_content(self, only_new=True):
     from assembl.lib.config import get_config
     from pyramid.settings import asbool
     assert self.id
     config = get_config()
     if asbool(config.get('use_source_reader_for_mail', False)):
         super(AbstractMailbox, self).import_content(only_new)
     else:
         import_mails.delay(self.id, only_new)
Esempio n. 3
0
 def import_content(self, only_new=True):
     #Mailbox.do_import_content(self, only_new)
     import_mails.delay(self.id, only_new)