def get_string_for_descriptor(self, descriptor, all_layers): """Returns the 'final' string form of a Descriptor object, as could be used in config files. This is a convenience function provided for use in child classes; """ layer_to_string_func = \ lambda name: xutils.get_string_from_layer_name(all_layers, self, name) return descriptor.config_string(layer_to_string_func)
def get_string_for_descriptor(self, descriptor, all_layers): """Returns the 'final' string form of a Descriptor object, as could be used in config files. This is a convenience function provided for use in child classes; """ layer_to_string_func = \ lambda name: xutils.get_string_from_layer_name(all_layers, self, name) return descriptor.config_string(layer_to_string_func)