From 3bd0f3d8eb82a890d24653fa237c197aa2a3c825 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Tue, 21 Feb 2012 08:42:09 +0100
Subject: [PATCH] Small fixup to rapi docstrings
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The fast that most classes don't override the @cvars means that direct
references to FillOpcode can fail (they do on my workstation, but not
on buildbot?). Anyway, for safety, it's best to qualify the name.

Additionally a small typo is fixed.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/rapi/baserlib.py | 12 ++++++------
 lib/rapi/rlib2.py    |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/rapi/baserlib.py b/lib/rapi/baserlib.py
index 3e467394f..5710000c6 100644
--- a/lib/rapi/baserlib.py
+++ b/lib/rapi/baserlib.py
@@ -1,7 +1,7 @@
 #
 #
 
-# Copyright (C) 2006, 2007, 2008 Google Inc.
+# Copyright (C) 2006, 2007, 2008, 2012 Google Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -469,33 +469,33 @@ class OpcodeResource(ResourceBase):
   is defined at class level. Subclasses can define a C{Get$Method$OpInput}
   method to do their own opcode input processing (e.g. for static values). The
   C{$METHOD$_RENAME} variable defines which values are renamed (see
-  L{FillOpcode}).
+  L{baserlib.FillOpcode}).
 
   @cvar GET_OPCODE: Set this to a class derived from L{opcodes.OpCode} to
     automatically generate a GET handler submitting the opcode
   @cvar GET_RENAME: Set this to rename parameters in the GET handler (see
-    L{FillOpcode})
+    L{baserlib.FillOpcode})
   @ivar GetGetOpInput: Define this to override the default method for
     getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData})
 
   @cvar PUT_OPCODE: Set this to a class derived from L{opcodes.OpCode} to
     automatically generate a PUT handler submitting the opcode
   @cvar PUT_RENAME: Set this to rename parameters in the PUT handler (see
-    L{FillOpcode})
+    L{baserlib.FillOpcode})
   @ivar GetPutOpInput: Define this to override the default method for
     getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData})
 
   @cvar POST_OPCODE: Set this to a class derived from L{opcodes.OpCode} to
     automatically generate a POST handler submitting the opcode
   @cvar POST_RENAME: Set this to rename parameters in the DELETE handler (see
-    L{FillOpcode})
+    L{baserlib.FillOpcode})
   @ivar GetPostOpInput: Define this to override the default method for
     getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData})
 
   @cvar DELETE_OPCODE: Set this to a class derived from L{opcodes.OpCode} to
     automatically generate a GET handler submitting the opcode
   @cvar DELETE_RENAME: Set this to rename parameters in the DELETE handler (see
-    L{FillOpcode})
+    L{baserlib.FillOpcode})
   @ivar GetDeleteOpInput: Define this to override the default method for
     getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData})
 
diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py
index e31d7e1e9..093e6d221 100644
--- a/lib/rapi/rlib2.py
+++ b/lib/rapi/rlib2.py
@@ -1281,7 +1281,7 @@ class R_2_query_fields(baserlib.ResourceBase):
 
 
 class _R_Tags(baserlib.OpcodeResource):
-  """ Quasiclass for tagging resources
+  """Quasiclass for tagging resources.
 
   Manages tags. When inheriting this class you must define the
   TAG_LEVEL for it.
-- 
GitLab