mailr15941 - /branches/uf_redesign/user_functions/objects.py


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

Header


Content

Posted by edward on May 03, 2012 - 23:04:
Author: bugman
Date: Thu May  3 23:04:00 2012
New Revision: 15941

URL: http://svn.gna.org/viewcvs/relax?rev=15941&view=rev
Log:
Renamed the private _args variable to the non-private kargs.


Modified:
    branches/uf_redesign/user_functions/objects.py

Modified: branches/uf_redesign/user_functions/objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/objects.py?rev=15941&r1=15940&r2=15941&view=diff
==============================================================================
--- branches/uf_redesign/user_functions/objects.py (original)
+++ branches/uf_redesign/user_functions/objects.py Thu May  3 23:04:00 2012
@@ -73,7 +73,7 @@
 
     @ivar title:            The long title of the user function.
     @ivar title_short:      The optional short title.
-    @ivar _args:            The list of argument details.
+    @ivar kargs:            The list of keyword argument details.
     @ivar backend:          The user function back end.  This should be a 
string version with full module path of the function which executes the back 
end.  For example 'generic_fns.pipes.create'.  Note, this should be 
importable as __import__(backend)!
     @ivar desc:             The full, multi-paragraph description.
     @ivar prompt_examples:  The examples of how to use the prompt front end.
@@ -83,7 +83,7 @@
     __mod_attr__ = [
             'title',
             'title_short',
-            '_args',
+            'kargs',
             'backend',
             'desc',
             'prompt_examples'
@@ -96,7 +96,7 @@
         # Initialise the variables for all user functions.
         self.title = None
         self.title_short = None
-        self._args = []
+        self.kargs = []
         self.backend = None
         self.desc = None
         self.prompt_examples = None
@@ -147,8 +147,8 @@
             raise RelaxError("The 'desc' argument must be supplied.")
 
         # Append a new argument dictionary to the list, and alias it.
-        self._args.append({})
-        arg = self._args[-1]
+        self.kargs.append({})
+        arg = self.kargs[-1]
 
         # Add the data.
         arg['name'] = name




Related Messages


Powered by MHonArc, Updated Thu May 03 23:20:02 2012