Example #1
0
    def _create_objects(self, baseobj, combinations, parameter_objs, parameters):
        opss = _Expander._create_objects(self, baseobj, combinations, parameter_objs, parameters)

        for options, combination in zip(opss, combinations):
            parts = [options.name]

            for parameter, value in zip(parameters, combination):
                parts.append("%s=%s" % (parameter.name, value[0]))

            name = "+".join(parts)
            name = name.replace(",", "_")
            options.name = name

        return opss
Example #2
0
 def expand(self, obj):
     if not isinstance(obj, Options):
         raise ValueError("Argument must be an Options")
     return _Expander.expand(self, obj)