Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-154

API refers to couchbase.result.OBS_*, only exists under couchbase.OBS_*

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: docs
    • Security Level: Public
    • Labels:
      None
    • Environment:
      couchbase 1.0.0

      Description

      Under Observe-Info in the API documentation for 1.0.0, the observe flags are listed as being under couchbase.result. When trying to access the constants from there, an AttributeError occurs:

      Python 2.7.3 (default, Aug 1 2012, 05:14:39)
      [GCC 4.6.3] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import couchbase
      >>> couchbase.result.OBS_FOUND
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      AttributeError: 'module' object has no attribute 'OBS_FOUND'
      >>> import couchbase.result
      >>> couchbase.result.OBS_FOUND
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      AttributeError: 'module' object has no attribute 'OBS_FOUND'
      >>> couchbase.OBS_FOUND
      0

      Documentation reference:
      http://pythonhosted.org/couchbase/api/results.html#observe-info

      Documentation may need to be updated to reflect the actual location of flag constants.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        leonexis Leo Tindle added a comment -

        Also, the documentation mentions OBS_LOGICALLY_DELETED and that does not exist anywhere as far as I can see, but OBS_MASK does exist, just not documented. Perhaps the name changed? In any case, documentation may need to reflect this as well.

        Show
        leonexis Leo Tindle added a comment - Also, the documentation mentions OBS_LOGICALLY_DELETED and that does not exist anywhere as far as I can see, but OBS_MASK does exist, just not documented. Perhaps the name changed? In any case, documentation may need to reflect this as well.

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            leonexis Leo Tindle
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes