DESCRIPTION

Added classes to hold a view and a design document

Change-Id: I87673675c9e2a876f85c19e73ba348c31ac12448


COMMENTS

author: Kenny Maynard
date: 2012-03-25 03:49:14.410000000

Uploaded patch set 3.

-------------------------------------
author: Titus Ho
date: 2012-03-25 03:49:22.711000000

Patch Set 3: Looks good to me, approved

Automatically re-added by Roselyn Villegas trivial rebase detection script.

-------------------------------------
author: Kenny Maynard
date: 2012-03-25 06:07:35.425000000

Patch Set 3: Verified



-------------------------------------
author: Ayla Reynolds
date: 2012-03-27 10:20:07.204000000

Patch Set 3: Do not submit

(4 inline comments)

See the inline comments.

Line:20, lib/couchbase/document.py -> It should be named as_json(). Though It would do it completely different.

What you return is not JSON (it would be a string), but a Python data structure. I would implement it with __getitem__. You would then directly access the properties (_id, views) from the DesignDocument object.

Line:23, lib/couchbase/document.py -> If you compare with None, "is" and "is not" should be used:
if self.rev is not None:

Line:51, lib/couchbase/document.py -> The same as for the DesignDocument class

Line:52, lib/couchbase/document.py -> If you compare with None, "is" should be used:
if self.red_func is None:

-------------------------------------
author: Kenny Maynard
date: 2012-03-28 18:38:54.309000000

Patch Set 3: (3 inline comments)



Line:20, lib/couchbase/document.py -> I just lower cased this for now. I plan on doing it like your doing in a later change, but for now I need to unblock Srini.

Line:23, lib/couchbase/document.py -> Done

Line:52, lib/couchbase/document.py -> Done

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