My favorites | Sign in
Project Home
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 180 attachment: shows_custom_methods.patch (537 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/couchdb/client.py b/couchdb/client.py
--- a/couchdb/client.py
+++ b/couchdb/client.py
@@ -840,7 +840,9 @@
path = _path_from_name(name, '_show')
if docid:
path.append(docid)
- status, headers, body = self.resource(*path).get(**options)
+ options.setdefault('method', 'GET')
+ options['method'] = options['method'].upper()
+ status, headers, body = self.resource(*path)._request(**options)
return headers, body

def list(self, name, view, **options):

Powered by Google Project Hosting