Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Views: Added ability to specify None for design_doc

This can be used to reach the special builtin view '_all_docs'

Closes GH-3.
  • Loading branch information...
commit 822b7fb5ffb6f62fed85f6956b7fb9e4f318b16e 1 parent 61142ce
Jeremy Kelley authored nailor committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 trombi/client.py
View
6 trombi/client.py
@@ -324,7 +324,11 @@ def _really_callback(response):
else:
callback(_error_response(response))
- url = '_design/%s/_view/%s' % (design_doc, viewname)
+ if not design_doc and viewname == '_all_docs':
+ url = '_all_docs'
+ else:
+ url = '_design/%s/_view/%s' % (design_doc, viewname)
+
if kwargs:
url = '%s?%s' % (url, _jsonize_params(kwargs))
Please sign in to comment.
Something went wrong with that request. Please try again.