Author: bugman
Date: Mon Sep 29 23:16:31 2008
New Revision: 7443
URL: http://svn.gna.org/viewcvs/relax?rev=7443&view=rev
Log:
Renamed the current() function to cdp_name() and created cdp() for returning 
the current data pipe.
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=7443&r1=7442&r2=7443&view=diff
==============================================================================
--- branches/pipe_refs/generic_fns/pipes.py (original)
+++ branches/pipe_refs/generic_fns/pipes.py Mon Sep 29 23:16:31 2008
@@ -94,7 +94,17 @@
     ds.add(pipe_name=pipe_name, pipe_type=pipe_type)
 
 
-def current():
+def cdp():
+    """Return the current data pipe.
+    
+    @return:        The current data pipe.
+    @rtype:         PipeContainer instance
+    """
+
+    return ds[ds.current_pipe]
+
+
+def cdp_name():
     """Return the name of the current data pipe.
     
     @return:        The name of the current data pipe.