setting up VBucketAware & MemcachedClient tests better

There was no value in setting self.client equal to
something in a parent and then overriding it on the
next line. Base has what these need.

Change-Id: Ib87c5406768c84c45ad11731eb874f379236131d
Reviewed-on: http://review.couchbase.org/18356
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
fixed PYCBC-15; API supports integer value sets

Previously, the developer had to pass strings to .set().
Now, ints can be passed in, and are coerced into strings
both going in and coming out.

WARNING: this is a backwards compatibility break, as old
code which routed around this issue by always expecting
strings to be returned, will now need updating.

Change-Id: I29d215357a15d0c347b07b3a545a76325ef434f7
Reviewed-on: http://review.couchbase.org/18357
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
narrowed deprecation warning check to just getMulti

Change-Id: I12dfa193991ff6bb719c074520c200b10ecf7b5e
Reviewed-on: http://review.couchbase.org/18386
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Reviewed-by: Benjamin Young <benjamin@couchbase.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
fixed memcached bucket access via CouchbaseClient

This patch fixes CouchbaseClient object initiation
primarily. It previously did not work with memcached
buckets. It also changes the internal self.bucket
attribute to be an object rather than just the name,
so that we have more power, with fewer trips to the
server.

Change-Id: I446bae3158bdd6f644c5898d7cf9a6b73c879e4b
Reviewed-on: http://review.couchbase.org/18430
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
refactored client memcached bucket tests

Also added @nottest and @attr in the right places

Change-Id: Ic3f5e110d904d307cd20ba7c69b4169516a880f4
Reviewed-on: http://review.couchbase.org/18431
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
simplifying Bucket var names

WARNING: Bucket.bucket_name is now Bucket.name

Change-Id: If63d472c652c02f3faa502a1f9cee0d9c1c2e5d1
Reviewed-on: http://review.couchbase.org/18432
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
removed warning catcher in favor of with

Other things break 2.4 compatibility, so
there was no need to keep this thing.

Change-Id: I264b3e9e729dc397150292655157dd4d737bd70a
Reviewed-on: http://review.couchbase.org/18433
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
pep8 event.py

Change-Id: Ie08c08a18c051be78536b86a6579c456401a414d
Reviewed-on: http://review.couchbase.org/18813
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
finished up pep8 event.py

Seems I missed changing the other code to reference
the is_set rather than isSet method. Somethings cannot
be seen in a single patch in Gerrit...

Change-Id: Ibbb07c06e98854907570111d4c407cafa11f7365
Reviewed-on: http://review.couchbase.org/18877
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
module renamed :s/couchbase-python/couchbase

The -python implied that we are a pure Python SDK. We still
are for the time being, but not for much longer. This is
our first major release to PyPI, so figured we should get
the name correct right off.

Change-Id: I28554f13ef7139e56087409ac4d6dfcc27b8618f
Reviewed-on: http://review.couchbase.org/18878
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
pep8 setup.py

Change-Id: I5808835d4a46bd02face2411fa2b64bbbf6ea059
Reviewed-on: http://review.couchbase.org/18879
Reviewed-by: Benjamin Young <benjamin@couchbase.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
added tests for examples in the readme

Testing the old/current ones first, then will update.
Plan to keep the old ones around to check backwards
compatibility...at least for now.

Change-Id: I5c78f942cf35f9fa86668faf563d04e29913559e
Reviewed-on: http://review.couchbase.org/19084
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
added warmup state as valid HTTP API state

Previously the list of available nodes was limited
to ones marked healthy. 2.0 introduces a warmup
state in which the server can still respond to HTTP
requests, and as such, we need to keep those in the
list of available nodes.

Change-Id: I569bcd748055afd0f79716b1d41687abf6c725b0
Reviewed-on: http://review.couchbase.org/19086
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
memcached buckets do not have diskUsed stats

Change-Id: Ideb38c4bebb9279bf849089e04d3218279057a5f
Reviewed-on: http://review.couchbase.org/19087
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
flush event error handling does contain a vbucket

Change-Id: I11260857d82acd8b13ca6ab279e9b5439169a019
Reviewed-on: http://review.couchbase.org/19088
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
added test of other Readme example

Also made Couchbase class more accessible for imports:
  from couchbase import Couchbase
Updated the example code to use this, rather than the
deprecated Server class.

Change-Id: Ice336c8f823d5d40f5961aa8f07151ec73d65d99
Reviewed-on: http://review.couchbase.org/19085
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
Reviewed-by: Benjamin Young <benjamin@couchbase.com>
big whitespace-focused pep8 update

pep8.py 1.3.3 shows a lot more than 1.1 >_<

Change-Id: I05959084efe1970e1bdd0185583ea681aa115766
Reviewed-on: http://review.couchbase.org/19089
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
conditional syntax changes per pep8

if cond != None is now if cond is not None
if cond == None is now if cond is None

Change-Id: I1cfcc6df32ad09d09461512ada993f91d2568cb4
Reviewed-on: http://review.couchbase.org/19090
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
pep8 the README code

Change-Id: I24dcdbf17d9a6fab5d54608342b6c279426a6199
Reviewed-on: http://review.couchbase.org/19096
Tested-by: Benjamin Young <benjamin@couchbase.com>
Reviewed-by: Benjamin Young <benjamin@couchbase.com>
updated README text about testing & needing flush

Change-Id: I2cb0bf84b9e2d2d9747ff2a3776888006c3c8c59
Reviewed-on: http://review.couchbase.org/19110
Reviewed-by: Benjamin Young <benjamin@couchbase.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>