Author: semor Date: Wed Jan 9 17:51:14 2008 New Revision: 4567 URL: http://svn.gna.org/viewcvs/relax?rev=4567&view=rev Log: Changed all instances of the 'print_flag' arg to 'verbosity' in the prompt for tab_completion. Modified: 1.3/prompt/tab_completion.py Modified: 1.3/prompt/tab_completion.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/tab_completion.py?rev=4567&r1=4566&r2=4567&view=diff ============================================================================== --- 1.3/prompt/tab_completion.py (original) +++ 1.3/prompt/tab_completion.py Wed Jan 9 17:51:14 2008 @@ -25,11 +25,11 @@ class Tab_completion: - def __init__(self, name_space={}, print_flag=0): + def __init__(self, name_space={}, verbosity=0): """Function for tab completion.""" self.name_space = name_space - self.print_flag = print_flag + self.verbosity = verbosity def create_list(self): @@ -71,7 +71,7 @@ if match(list[-1], name): self.options.append(module + '.' + name) - if self.print_flag: + if self.verbosity: print "List: " + `list` print "Module: " + `module` print "self.list: " + `self.list` @@ -86,24 +86,24 @@ # Create a list of all possible options. # Find a list of options by matching the input with self.list - if self.print_flag: + if self.verbosity: print "\nInput: " + `self.input` if not "." in self.input: - if self.print_flag: + if self.verbosity: print "Creating list." self.create_list() - if self.print_flag: + if self.verbosity: print "\tOk." else: - if self.print_flag: + if self.verbosity: print "Creating sublist." self.create_sublist() - if self.print_flag: + if self.verbosity: print "\tOk." # Return the options if self.options[state] exists, or return None otherwise. - if self.print_flag: + if self.verbosity: print "Returning options." if self.state < len(self.options): return self.options[self.state]