def set_fname(self, fname):

        path_list = re.split('[.[]', fname)  # TODO

        self.base_name = path_list[0]
        self.fname = fname
        self.subpath = path_list[1:]
        self.is_positional = not self.base_name or self.base_name.isdigit()
Constructs a list of validators from a list of specifications.
dataset/ETHPy150Open mahmoud/boltons/boltons/formatutils.py/BaseFormatField.set_fname--crossover with--dataset/ETHPy150Open openstack/sahara/sahara/plugins/images.py/SaharaImageValidatorBase.from_spec_list