DESCRIPTION

WIP adding capi view funtions to testrunner rest_client

added create_view,get_view and delete_view to
RestConnection class
usage example :
capi = RestConnection(server)
function = "{\"_id\": \"_design/test\",\"views\": {\"stuff\": {\"map\": \"function (doc) { emit([doc.id], 99); }\"}}}"
capi.create_view("default","myview",function)
capi.get_view("default","myview")
capi.delete_view("default","myview")

Change-Id: I35326c5f3fc2fa8ce10004c47d0da187cae5afb5


COMMENTS

author: Zackery Barr
date: 2011-07-16 14:55:32.200000000

Patch Set 1:

Hi Filipe,

the delete_view function is not working for me as i get  "document update conflict" in response.
i am passing the latest rev when deleting the view : 
rev=7-d3a438309a6a195555e6c8aa2722b0ea

{"error":"conflict","reason":"Document update conflict."}

any ideas ?

-------------------------------------
