Exemplo n.º 1
0
 def _log_list(self, items, what='item'):
     msg = [
         'Altogether %s %s%s.' % (len(items), what, plural_or_not(items))
     ]
     for index, item in enumerate(items):
         msg.append('%s: %s' % (index + 1, item))
     self.info('\n'.join(msg))
     return items
Exemplo n.º 2
0
 def _log_list(self, items, what="item"):
     msg = [
         "Altogether %s %s%s." % (len(items), what, plural_or_not(items))
     ]
     for index, item in enumerate(items):
         msg.append("%s: %s" % (index + 1, item))
     self.info("\n".join(msg))
     return items
 def _log_list(self, items, what='item'):
     msg = [
         'Altogether %s %s%s.'
         % (len(items), what, plural_or_not(items))
     ]
     for index, item in enumerate(items):
         msg.append('%s: %s' % (index + 1, item))
     self.info('\n'.join(msg))
     return items