Author: bugman Date: Tue Sep 30 18:05:11 2008 New Revision: 7465 URL: http://svn.gna.org/viewcvs/relax?rev=7465&view=rev Log: Created the pipes API function pipe_names() to get the list of all data pipes. Modified: branches/pipe_refs/generic_fns/pipes.py Modified: branches/pipe_refs/generic_fns/pipes.py URL: http://svn.gna.org/viewcvs/relax/branches/pipe_refs/generic_fns/pipes.py?rev=7465&r1=7464&r2=7465&view=diff ============================================================================== --- branches/pipe_refs/generic_fns/pipes.py (original) +++ branches/pipe_refs/generic_fns/pipes.py Tue Sep 30 18:05:11 2008 @@ -186,6 +186,16 @@ print "%-20s%-20s" % (pipe_name, get_type(pipe_name)) +def pipe_names(): + """Return the list of all data pipes. + + @return: The list of data pipes. + @rtype: list of str + """ + + return ds.keys() + + def switch(pipe_name=None): """Switch the current data pipe to the given data pipe.