def make_superdict(self, machine=None): # change sep here sep = PAELLA_TRAIT_NAME_SEP if machine is None: self._check_machine_set() machine = self.current_machine clause = self._machine_clause_(machine=machine) # due to limitations in the Environment class # we need to temporarily set the machine # to the value of the machine argument, then # set it back before returning the superdict current_machine = self.current_machine self.set_machine(machine) superdict = Environment.make_superdict(self, clause, sep=sep) self.set_machine(current_machine) return superdict
def make_superdict(self, machine=None): # change sep here sep = PAELLA_TRAIT_NAME_SEP if machine is None: self._check_machine_set() machine = self.current_machine clause = self._machine_clause_(machine=machine) # due to limitations in the Environment class # we need to temporarily set the machine # to the value of the machine argument, then # set it back before returning the superdict current_machine = self.current_machine self.set_machine(machine) superdict = Environment.make_superdict(self, clause, sep=sep) self.set_machine(current_machine) return superdict
def make_superdict(self, sep='_'): clause = Eq('profile', self.profile) return Environment.make_superdict(self, clause, sep=sep)