示例#1
0
 def _fetch_group_articles(self, group, start, end):
   LOG.debug((group, start, end))
   with self.nntp_connection as nntp:
     nntp.group(group)
     resp, articles = nntp.xover(str(start), str(end))
   LOG.debug(len(articles))
   if articles:
     Article.add_from_nntplib(group, articles)
示例#2
0
 def _fetch_group_articles(self, group, start, end):
     LOG.debug((group, start, end))
     with self.nntp_connection as nntp:
         nntp.group(group)
         resp, articles = nntp.xover(str(start), str(end))
     LOG.debug(len(articles))
     if articles:
         Article.add_from_nntplib(group, articles)