Example #1
0
File: grid.py Project: drglove/Ice
    def __call__(self, app_settings, users, dry_run):
        roms = self.rom_finder.roms_for_consoles(app_settings.config, app_settings.consoles)

        provider = settings.image_provider(app_settings.config)
        grid_updater = steam_grid_updater.SteamGridUpdater(provider)

        for user in users:
            logger.info("::Updating grid images for U:%s" % user.user_id)
            grid_updater.update_artwork_for_rom_collection(user, roms, dry_run=dry_run)
Example #2
0
    def __call__(self, app_settings, users, dry_run):
        roms = self.rom_finder.roms_for_consoles(
            app_settings.config,
            app_settings.consoles,
        )

        provider = settings.image_provider(app_settings.config)
        grid_updater = steam_grid_updater.SteamGridUpdater(provider)

        for user in users:
            logger.info("::Updating grid images for U:%s" % user.user_id)
            grid_updater.update_artwork_for_rom_collection(user,
                                                           roms,
                                                           dry_run=dry_run)
Example #3
0
 def test_image_provider(self, spec, classes):
     config = mock()
     config.provider_spec = spec
     result = settings.image_provider(config)
     self.assertEqual(classes, map(lambda p: p.__class__, result.providers))
Example #4
0
 def test_image_provider(self, spec, classes):
   config = mock()
   config.provider_spec = spec
   result = settings.image_provider(config)
   self.assertEqual(classes, map(lambda p: p.__class__, result.providers))
Example #5
0
 def __init__(self, app_settings):
     provider = settings.image_provider(app_settings.config)
     self.grid_updater = steam_grid_updater.SteamGridUpdater(provider)
Example #6
0
 def __init__(self, app_settings):
   provider = settings.image_provider(app_settings.config)
   self.grid_updater = steam_grid_updater.SteamGridUpdater(provider)
Example #7
0
 def test_image_provider(self, spec, classes):
     config = mock()
     config.provider_spec = spec
     result = settings.image_provider(config)
     self.assertEqual(classes, [p.__class__ for p in result.providers])