This does not yet fix all issues in the RAPI interface which were
introduced with the type system. More testing is needed.
---
 lib/rapi/baserlib.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/rapi/baserlib.py b/lib/rapi/baserlib.py
index fbf3c4c..4a6a902 100644
--- a/lib/rapi/baserlib.py
+++ b/lib/rapi/baserlib.py
@@ -354,22 +354,22 @@ class R_Generic(object):
     """Check if the request specifies locking.
 
     """
-    return self._checkIntVariable('lock')
+    return bool(self._checkIntVariable("lock"))
 
   def useBulk(self):
     """Check if the request specifies bulk querying.
 
     """
-    return self._checkIntVariable('bulk')
+    return bool(self._checkIntVariable("bulk"))
 
   def useForce(self):
     """Check if the request specifies a forced operation.
 
     """
-    return self._checkIntVariable('force')
+    return bool(self._checkIntVariable("force"))
 
   def dryRun(self):
     """Check if the request specifies dry-run mode.
 
     """
-    return self._checkIntVariable('dry-run')
+    return bool(self._checkIntVariable("dry-run"))
-- 
1.7.0.4

Reply via email to