mailr7465 - /branches/pipe_refs/generic_fns/pipes.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 30, 2008 - 18:05:
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.
 




Related Messages


Powered by MHonArc, Updated Tue Sep 30 18:20:05 2008