Example #1
0
 def handle(self, **kwargs):
     for channel in utils.all_channel_iterator('update search data'):
         try:
             ChannelSearchData.objects.update(channel)
         except:
             logging.warn('error updating search data for %i:\n%s' %
                          (channel.id, traceback.format_exc()))
Example #2
0
 def handle(self, **kwargs):
     for channel in utils.all_channel_iterator('update search data'):
         try:
             ChannelSearchData.objects.update(channel)
         except:
             logging.warn('error updating search data for %i:\n%s' % (
                     channel.id,
                     traceback.format_exc()))
Example #3
0
 def handle(self, *sizes, **kwargs):
     overwrite = kwargs.pop('overwrite', False)
     if len(sizes) == 0:
         sizes = None
     for channel in utils.all_channel_iterator('update thumbnails'):
         try:
             channel.update_thumbnails(overwrite, None)
         except:
             logging.warn('error updating thumbnails for %i:\n%s' %
                          (channel.id, traceback.format_exc()))
Example #4
0
 def handle(self, *sizes, **kwargs):
     overwrite = kwargs.pop('overwrite', False)
     if len(sizes) == 0:
         sizes = None
     for channel in utils.all_channel_iterator('update thumbnails'):
         try:
             channel.update_thumbnails(overwrite, None)
         except:
             logging.warn('error updating thumbnails for %i:\n%s' % (
                     channel.id,
                     traceback.format_exc()))