comparison src/browser/sat_browser/panels.py @ 580:79fbc20c786b

browser_side: fixes call to logging method with more than one argument
author souliane <souliane@mailoo.org>
date Sun, 19 Oct 2014 12:32:08 +0200
parents 4a0f2f294ea2
children 1c1dbe03d3c6
comparison
equal deleted inserted replaced
579:4a0f2f294ea2 580:79fbc20c786b
808 log.debug("Massive insertion of %d microblogs" % count) 808 log.debug("Massive insertion of %d microblogs" % count)
809 for publisher in mblogs: 809 for publisher in mblogs:
810 log.debug("adding blogs for [%s]" % publisher) 810 log.debug("adding blogs for [%s]" % publisher)
811 for mblog in mblogs[publisher]: 811 for mblog in mblogs[publisher]:
812 if not "content" in mblog: 812 if not "content" in mblog:
813 log.warning("No content found in microblog [%s]", mblog) 813 log.warning("No content found in microblog [%s]" % mblog)
814 continue 814 continue
815 self.addEntry(mblog) 815 self.addEntry(mblog)
816 816
817 def mblogsInsert(self, mblogs): 817 def mblogsInsert(self, mblogs):
818 """ Insert several microblogs at once 818 """ Insert several microblogs at once
819 @param mblogs: list of microblogs 819 @param mblogs: list of microblogs
820 """ 820 """
821 for mblog in mblogs: 821 for mblog in mblogs:
822 if not "content" in mblog: 822 if not "content" in mblog:
823 log.warning("No content found in microblog [%s]", mblog) 823 log.warning("No content found in microblog [%s]" % mblog)
824 continue 824 continue
825 self.addEntry(mblog) 825 self.addEntry(mblog)
826 826
827 def _chronoInsert(self, vpanel, entry, reverse=True): 827 def _chronoInsert(self, vpanel, entry, reverse=True):
828 """ Insert an entry in chronological order 828 """ Insert an entry in chronological order