check that the block can be run

def validate(self):
        """ check that the block can be run
        """
        if self.required and len(self.selected()) == 0:
            raise ReliureError("No component selected for block '%s'" % self.name)