--- /usr/share/quickly/templates/ubuntu-project/help/quickly-getting-started.html 2009-10-26 06:19:52.000000000 -0700 +++ quickly-getting-started.html 2009-12-21 23:08:17.000000000 -0800 @@ -185,7 +185,7 @@ record_type = "http://wiki.ubuntu.com/Quickly/JottyDoc" new_rec = Record({"record_type": record_type, "title":title, "text":text}) - self.database.put(record) + self.database.put_record(new_rec)

The "record_type" field is not strictly required, but among other things, it makes it easy to fetch the documents later. By convention, we use a url to specify the record type. This provides a place for other developers to go to read about the record type. The description only needs to be human readable. Couchdb is not a typed database, so don't expect that the url will have any kind of schema definition or anything. You can use whatever url you want, and put whatever you want at that URL.

@@ -238,7 +238,7 @@ for result in results: document = result.value if document["title"] == title: - key = result.key + key = document["_id"] self.database.update_fields(key, {"text":text}) return