Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

create_view -> create_design_doc #5

Closed
wants to merge 1 commit into from

5 participants

@weaver

The Bucket.save method currently calls RestClient.create_view, which doesn't exist. This patch calls RestClient.create_design_doc instead.

@natalinobusa

So... any chance of this getting pulled in? The python client is unusable without being able to create views.

no reason to pull, this has already been fixed. please check and close the pull

@mnunberg
Collaborator

Currently it's design_create in the new API

@ingenthr ingenthr closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  couchbase/client.py
View
2  couchbase/client.py
@@ -284,7 +284,7 @@ def save(self, document):
view = key.split('/')[1]
rest = self.server._rest()
- rest.create_view(self.bucket_name, view, json.dumps(value))
+ rest.create_design_doc(self.bucket_name, view, json.dumps(value))
else:
if '_rev' in value:
# couchbase works in clobber mode so for a "set" _rev is useless
Something went wrong with that request. Please try again.