def delegator(self, images):
        delegatorlist = []
        for fullpath in images:
            try: # recompress images already in the list
                image = (i.image for i in self.imagelist
                    if i.image.fullpath == fullpath).next()
                if image.compressed:
                    image.reset()
                    image.recompression = True
                    delegatorlist.append(image)
            except StopIteration:
            	if not path.isdir(fullpath):
                    self. add_image(fullpath, delegatorlist)
                else:
                    self.walk(fullpath, delegatorlist)

        self.update_table()
        self.thread.compress_file(delegatorlist, self.showapp, self.verbose,
            self.imagelist)
Return a service group ressource or None
dataset/ETHPy150Open Kilian/Trimage/src/trimage/trimage.py/StartQT4.delegator--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/netscaler.py/_servicegroup_get