rlib2: Document two previously undocumented functions
authorMichael Hanselmann <hansmi@google.com>
Thu, 8 Nov 2012 17:51:03 +0000 (18:51 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 8 Nov 2012 18:37:14 +0000 (19:37 +0100)
Commit 208a6cff just included empty docstrings.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/rapi/rlib2.py

index f4dc219..d31a5b4 100644 (file)
@@ -1248,7 +1248,11 @@ class R_2_instances_name_console(baserlib.ResourceBase):
 
 
 def _GetQueryFields(args):
-  """
+  """Tries to extract C{fields} query parameter.
+
+  @type args: dictionary
+  @rtype: list of string
+  @raise http.HttpBadRequest: When parameter can't be found
 
   """
   try:
@@ -1260,7 +1264,10 @@ def _GetQueryFields(args):
 
 
 def _SplitQueryFields(fields):
-  """
+  """Splits fields as given for a query request.
+
+  @type fields: string
+  @rtype: list of string
 
   """
   return [i.strip() for i in fields.split(",")]