mailr16650 - /branches/uf_redesign/user_functions/pipe.py


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

Header


Content

Posted by edward on June 05, 2012 - 09:11:
Author: bugman
Date: Tue Jun  5 09:11:46 2012
New Revision: 16650

URL: http://svn.gna.org/viewcvs/relax?rev=16650&view=rev
Log:
Added the new 'bundle_to' arg to the pipe.copy user function.

This will be used to associated a newly copied data pipe with a pipe bundle.


Modified:
    branches/uf_redesign/user_functions/pipe.py

Modified: branches/uf_redesign/user_functions/pipe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/pipe.py?rev=16650&r1=16649&r2=16650&view=diff
==============================================================================
--- branches/uf_redesign/user_functions/pipe.py (original)
+++ branches/uf_redesign/user_functions/pipe.py Tue Jun  5 09:11:46 2012
@@ -96,9 +96,20 @@
     desc = "The name of the target data pipe to copy the data to.",
     can_be_none = True
 )
+uf.add_keyarg(
+    name = "bundle_to",
+    py_type = "str",
+    desc_short = "destination pipe bundle",
+    desc = "If given, the new data pipe will be grouped into this bundle.",
+    wiz_element_type = 'combo',
+    wiz_combo_iter = pipes.bundle_names,
+    wiz_read_only = False,
+    can_be_none = True
+)
 # Description.
 uf.desc.append(Desc_container())
 uf.desc[-1].add_paragraph("This allows the contents of a data pipe to be 
copied.  If the source data pipe is not set, the current data pipe will be 
assumed.  The target data pipe must not yet exist.")
+uf.desc[-1].add_paragraph("The optional bundling allows the newly created 
data pipe to be placed into either a new or existing data pipe bundle.  If 
not specified, then the copied data pipe will not be associated with a 
bundle.")
 # Prompt examples.
 uf.desc.append(Desc_container("Prompt examples"))
 uf.desc[-1].add_paragraph("To copy the contents of the 'm1' data pipe to the 
'm2' data pipe, type:")
@@ -109,6 +120,7 @@
 uf.backend = pipes.copy
 uf.menu_text = "&copy"
 uf.gui_icon = "oxygen.actions.list-add"
+uf.wizard_size = (800, 500)
 uf.wizard_image = WIZARD_IMAGE_PATH + 'pipe.png'
 
 




Related Messages


Powered by MHonArc, Updated Tue Jun 05 09:20:02 2012