History log of /5.5.2/couchstore/python/couchstore.py (Results 1 - 25 of 31)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.0, v6.6.1, v6.6.0, v6.5.0, v6.0.4, v5.5.6, v5.1.3, v5.5.3, v5.1.2, v5.1.0, v5.0.0
# 7f77f3c8 27-Mar-2017 Dave Rigby <daver@couchbase.com>

couchstore.py: Check for couchstore err in getContents()

Check the return value of couchstore_open_doc_with_docinfo(), and
raise an exception on failure.

This makes any errors i

couchstore.py: Check for couchstore err in getContents()

Check the return value of couchstore_open_doc_with_docinfo(), and
raise an exception on failure.

This makes any errors in couchstore_open_doc_with_docinfo() explicit -
for example it will return

couchstore.CouchStoreException: checksum fail

instead of the more generic:

ValueError: NULL pointer access

in the event of a checksum failure in the file.

Change-Id: Ie5db90d25ecb5210b75c48c4ae027218696afc23
Reviewed-on: http://review.couchbase.org/84055
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>

show more ...


# b45a596f 02-Feb-2017 Dave Rigby <daver@couchbase.com>

couchstore.py: Allow CouchStore objects to disable io buffering

Add the optional 'unbuffered' flag to CouchStore __init__ method,
which allows iobuffering to be disabled.

Change

couchstore.py: Allow CouchStore objects to disable io buffering

Add the optional 'unbuffered' flag to CouchStore __init__ method,
which allows iobuffering to be disabled.

Change-Id: I2f56617ade4fc04f8251d3ff99fd2e77d111dc32
Reviewed-on: http://review.couchbase.org/73055
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Will Gardner <willg@rdner.io>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v4.6.0, v4.6.0-DP, v4.5.1-MP1, v4.5.0
# bc5b01ee 16-Mar-2016 Will Gardner <will.gardner@couchbase.com>

Fix Python tests on OSX

Python tests were disabled on OSX to resolve python binding issues
as part of MB-16454. This change adds compatibility to allow running
the Python tests on OS

Fix Python tests on OSX

Python tests were disabled on OSX to resolve python binding issues
as part of MB-16454. This change adds compatibility to allow running
the Python tests on OSX.

Change-Id: If3d3abf7835a77a6b715e1ab17a6a973f93214b6
Reviewed-on: http://review.couchbase.org/61568
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# c5ca445e 25-Feb-2016 Will Gardner <will.gardner@couchbase.com>

MB-18054 Refactor file ops to propogate file close errors properly

This change refactors the `close` file operation to correctly
progogate any underlying IO errors. It also removes the i

MB-18054 Refactor file ops to propogate file close errors properly

This change refactors the `close` file operation to correctly
progogate any underlying IO errors. It also removes the implicit
file close from couchstore_destroy_db (previously:
couchstore_close_db) and requires a user to call
couchstore_close_file (previously: couchstore_drop_file).

This is done to allow the user to get the oserror following an os
error as they would otherwise have an invalid db handle.

Change-Id: Iba3f698b49ea3b0821e888ac18e94624ad98ae92
Reviewed-on: http://review.couchbase.org/60503
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v4.5.1, v4.1.0
# 7d6bc22a 12-Oct-2015 Mike Wiederhold <mike@couchbase.com>

MB-16454: Fix issues with python bindings on osx 10.11

Change-Id: If02848550b211fcf3151ca05c594eba4267f7dce
Reviewed-on: http://review.couchbase.org/56276
Tested-by: buildbot <build@

MB-16454: Fix issues with python bindings on osx 10.11

Change-Id: If02848550b211fcf3151ca05c594eba4267f7dce
Reviewed-on: http://review.couchbase.org/56276
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v3.1.2, v3.0.3, v3.0.2, v3.0.1, v3.0.0
# 069ab01c 04-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

fix size propery of DocumentInfo representation

Change-Id: I05ca5b105835b454593f1e3fbec682306e1bfaa2
Reviewed-on: http://review.couchbase.org/34142
Reviewed-by: Aaron Miller <apage43

fix size propery of DocumentInfo representation

Change-Id: I05ca5b105835b454593f1e3fbec682306e1bfaa2
Reviewed-on: http://review.couchbase.org/34142
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: buildbot <build@couchbase.com>

show more ...


# ae31089d 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

explicit usage of ctypes namespace

there is no need to populate namespace with something that you
don't use. It can only introduce more unexpected bugs.

explicit "ctypes." names

explicit usage of ctypes namespace

there is no need to populate namespace with something that you
don't use. It can only introduce more unexpected bugs.

explicit "ctypes." namespace prefix makes code more readable and
safe.

Change-Id: I0abf234cf3061cdd4538ac5b7fa46e8724e67eda
Reviewed-on: http://review.couchbase.org/34108
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# fddaf0a0 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

avoid too long lines

making code more readable

Change-Id: Ib2a886f4cf4dc782ecb8050c2032daa38ed6e1f5
Reviewed-on: http://review.couchbase.org/34107
Reviewed-by: Aaron Miller

avoid too long lines

making code more readable

Change-Id: Ib2a886f4cf4dc782ecb8050c2032daa38ed6e1f5
Reviewed-on: http://review.couchbase.org/34107
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# 6c1283ac 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

minor code cleanup

based on common sense and PEP 8

Change-Id: Ibe3a956fb0aaf78c0691ada46d59c07354362e5c
Reviewed-on: http://review.couchbase.org/34106
Reviewed-by: Aaron Mil

minor code cleanup

based on common sense and PEP 8

Change-Id: Ibe3a956fb0aaf78c0691ada46d59c07354362e5c
Reviewed-on: http://review.couchbase.org/34106
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# 5a581ace 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

get rid of comments that only repeat class names

Change-Id: I68b05e366be3cb598d0866c65b665840c5497a6b
Reviewed-on: http://review.couchbase.org/34105
Reviewed-by: Aaron Miller <apage4

get rid of comments that only repeat class names

Change-Id: I68b05e366be3cb598d0866c65b665840c5497a6b
Reviewed-on: http://review.couchbase.org/34105
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# 38654116 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

use 2 blank lines before class declaration

according to PEP 8.

Change-Id: I05c99dfc10232ad667ba6c12d21653abb6731b78
Reviewed-on: http://review.couchbase.org/34104
Reviewed-b

use 2 blank lines before class declaration

according to PEP 8.

Change-Id: I05c99dfc10232ad667ba6c12d21653abb6731b78
Reviewed-on: http://review.couchbase.org/34104
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# 7e673780 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

remove whitespaces after function and class names

since it contradicts with existing conventions

Change-Id: Ifcabe238684137bbac7f245f673a8fc7a221533b
Reviewed-on: http://review.

remove whitespaces after function and class names

since it contradicts with existing conventions

Change-Id: Ifcabe238684137bbac7f245f673a8fc7a221533b
Reviewed-on: http://review.couchbase.org/34103
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# 6c65a79e 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

use sys function for exit instead of helper

see http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
for details

Change-Id: Ieb81434e530e54ba8f8bdb

use sys function for exit instead of helper

see http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
for details

Change-Id: Ieb81434e530e54ba8f8bdbdca10695f96874c1bc
Reviewed-on: http://review.couchbase.org/34102
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# 63a8a4b3 02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

generalize sequence of libcouchstore imports

and avoid unnecessarily repeating try-except statements

Change-Id: I215b2730212e1295635800aa11177c569ea7fc3e
Reviewed-on: http://rev

generalize sequence of libcouchstore imports

and avoid unnecessarily repeating try-except statements

Change-Id: I215b2730212e1295635800aa11177c569ea7fc3e
Reviewed-on: http://review.couchbase.org/34101
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# a48827f1 15-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9661: API to count changes between two sequence numbers

Change-Id: Icf62266bf29b5981d1e9dd6d33aa784a5a90d04f
Reviewed-on: http://review.couchbase.org/32412
Reviewed-by: Michael Wi

MB-9661: API to count changes between two sequence numbers

Change-Id: Icf62266bf29b5981d1e9dd6d33aa784a5a90d04f
Reviewed-on: http://review.couchbase.org/32412
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...


# 743d45fb 16-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

Python binding should look for couchstore.dll

The new CMake based build outputs the couchstore library as
couchstore.dll rather than libcouchstore-1.dll

Change-Id: I70c9c2e7e77a

Python binding should look for couchstore.dll

The new CMake based build outputs the couchstore library as
couchstore.dll rather than libcouchstore-1.dll

Change-Id: I70c9c2e7e77ad5c9c40d1ec80d63675875caf114
Reviewed-on: http://review.couchbase.org/32541
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# 1b613a6b 14-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...


# 9023808d 16-Oct-2013 Aaron Miller <apage43@ninjawhale.com>

Python: Header position should be 64-bits long

Fixes MB-7347

Change-Id: Ibe6bca62d453405eb2e7a38ef2514a3c51d1732d
Reviewed-on: http://review.couchbase.org/29590
Tested-by: b

Python: Header position should be 64-bits long

Fixes MB-7347

Change-Id: Ibe6bca62d453405eb2e7a38ef2514a3c51d1732d
Reviewed-on: http://review.couchbase.org/29590
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...


Revision tags: 2.1.1r, 2.1.0r, 2.0.2r
# 963fc26e 10-May-2013 Aaron Miller <apage43@ninjawhale.com>

MB-8030 Give explicit types for *all* numbers in couchstore.py

Change-Id: Ie41f09e20a2a6c83061c62fcdc69944c24565fb3
Reviewed-on: http://review.couchbase.org/26248
Reviewed-by: Bin Cu

MB-8030 Give explicit types for *all* numbers in couchstore.py

Change-Id: Ie41f09e20a2a6c83061c62fcdc69944c24565fb3
Reviewed-on: http://review.couchbase.org/26248
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# abc2af13 06-May-2013 pavel-paulau <pavel.paulau@gmail.com>

MB-7879: wrap python integers into c_uint64

Using Python values as they are is not safe. We must explicitly
specify uint64_t in order to avoid problems with 32-bit platforms.

Al

MB-7879: wrap python integers into c_uint64

Using Python values as they are is not safe. We must explicitly
specify uint64_t in order to avoid problems with 32-bit platforms.

All unit tests passed (both 32-bit and 64-bit GNU/Linux).

Change-Id: Id3c9544908f2c02ac94fcdf62f222d75740f3c89
Reviewed-on: http://review.couchbase.org/26131
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


Revision tags: 2.0.1-macosx, 2.0.1-linux, 2.0.0-couchbase
# e99a4e8f 02-Dec-2012 Steve Yen <steve.yen@gmail.com>

MB-7297 Use size_t for python wrapping for 32-bit support

The couchstore/couch_db.h uses size_t for several struct fields, and
size_t can be either 32-bits or 64-bits, depending on platf

MB-7297 Use size_t for python wrapping for 32-bit support

The couchstore/couch_db.h uses size_t for several struct fields, and
size_t can be either 32-bits or 64-bits, depending on platform.
So, instead of c_ulonglong, use c_size_t for those fields.

Here, we assume sizeof(off_t) == sizeof(size_t). Not a 100%
bulletproof assumption, but it seems to work on tests.

Additionally, use uint64_t for the couchstore_open_db() flags
parameter rather than the platform-specific int.

Change-Id: I36898d0260d44d57fe16ff7e16c7759c4686b4e4
Reviewed-on: http://review.couchbase.org/22969
Tested-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...


# d0e70d0d 18-Oct-2012 Pavel.Paulau <pavel.paulau@gmail.com>

MB-6928: import ctypes with fallback

Fallback steps:
1. Try to import ctypes from our library
2. If import fails - remove couchbase library from system path and
try again.
3.

MB-6928: import ctypes with fallback

Fallback steps:
1. Try to import ctypes from our library
2. If import fails - remove couchbase library from system path and
try again.
3. Exit if it still fails; otherwise return library to system path
and keep working.

Change-Id: I2b556597bb070b1426ca6824af6e9f58bf363953
Reviewed-on: http://review.couchbase.org/21750
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>

show more ...


Revision tags: 2.0.0r
# 946c88aa 25-Jul-2012 Bin Cui <bin.cui@gmail.com>

CBD-465: Depend on PATH environment variable

Set the environment PATH from caller side.

Change-Id: If9565f049ef4d6d47cce8e17b18074157ef30daf
Reviewed-on: http://review.couchbase

CBD-465: Depend on PATH environment variable

Set the environment PATH from caller side.

Change-Id: If9565f049ef4d6d47cce8e17b18074157ef30daf
Reviewed-on: http://review.couchbase.org/18841
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...


# c2aaec0d 20-Jul-2012 Bin Cui <bin.cui@gmail.com>

CBD-465: Add couchstore binding on windows

Change-Id: I344bbec2a56a7b733bcee70af6bdad03a209c01f
Reviewed-on: http://review.couchbase.org/18624
Reviewed-by: Steve Yen <steve.yen@gmail

CBD-465: Add couchstore binding on windows

Change-Id: I344bbec2a56a7b733bcee70af6bdad03a209c01f
Reviewed-on: http://review.couchbase.org/18624
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...


# e6371db0 29-Jun-2012 Jens Alfke <jens@couchbase.com>

MB-5738: Make binary data work in Python API

The Python 'couchstore' library had trouble converting Python strings
to SizedBuf structs when the strings contained embedded null bytes.

MB-5738: Make binary data work in Python API

The Python 'couchstore' library had trouble converting Python strings
to SizedBuf structs when the strings contained embedded null bytes.
Figured out how to fix this.

This patch also incorporates Steve's new unit tests that exposed the
problem, as well as some extra ones I added.

Change-Id: I213c1a38bec990d218917d3b2c6f741cf0b1adff
Reviewed-on: http://review.couchbase.org/17763
Tested-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>

show more ...


12