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_*

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.1.0
    • None
    • docs
    • Security Level: Public
    • None
    • 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.

      Attachments

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

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            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

                PagerDuty